Field serialization and deserialization needs access to the model.