POC for #22371 -- Serialization of Models for migrations.