You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Previous to 2.0, you could override dictionaryValue in your model and do things like drop keys with null values or arbitrarily drop keys not required for serialization. This is no longer the case with Mantle 2.0. The problem seems to be with this line NSDictionary *dictionaryValue = [model.dictionaryValue dictionaryWithValuesForKeys:propertyKeysToSerialize.allObjects]; in MTLJSONAdapter (line 189). From what I can tell it is possible to subclass MTLJSONAdapter and override serializablePropertyKeys: however this seems to be quite a bit of over head and effort to do things like drop nulls or model specific serialization logic.
The text was updated successfully, but these errors were encountered:
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Previous to 2.0, you could override
dictionaryValue
in your model and do things like drop keys with null values or arbitrarily drop keys not required for serialization. This is no longer the case with Mantle 2.0. The problem seems to be with this lineNSDictionary *dictionaryValue = [model.dictionaryValue dictionaryWithValuesForKeys:propertyKeysToSerialize.allObjects];
inMTLJSONAdapter
(line 189). From what I can tell it is possible to subclassMTLJSONAdapter
and overrideserializablePropertyKeys:
however this seems to be quite a bit of over head and effort to do things like drop nulls or model specific serialization logic.The text was updated successfully, but these errors were encountered: