pub fn field_conversion_to_core( name: &str, ty: &TypeRef, optional: bool, ) -> String
Determine the field conversion expression for binding -> core.