Open stephencelis opened 10 years ago
I see a few issues with the way mappings are currently implemented:
Let's explore ways to address these issues.
One thought is that we could provide a protocol, like NSCoding, that could be used to serialize/deserialize these mappings. E.g.,
@protocol ORCoding <NSObject> + (NSDictionary *)dictionaryFromRemoteDictionary:(NSDictionary)dict; - (NSDictionary *)remoteDictionaryRepresentation; @end
conformsToProtocol:
Relates to #68.
/cc @supermarin
+1 That approach looks really nice
@stephencelis I think that makes sense
I see a few issues with the way mappings are currently implemented:
Let's explore ways to address these issues.
Proposal 1: Protocol-based Mappings
One thought is that we could provide a protocol, like NSCoding, that could be used to serialize/deserialize these mappings. E.g.,
conformsToProtocol:
.