serialization - Manually mapping with Realm for Objective C -
i'm using realm deserialize json , create entity.
to deserialize json: name of property in json must identical property name of class. manually map names can different, possible?
example of json:
{ "text":"hello" }
example of class:
@property (nonatomic, strong) nsstring* mytext;
i want map "text" "mytext".
thanks lot.
sometimes need convert data being input realm if models don't line json response. there few libraries mantle , realm-json this. latter has been used community handle these kinds of situations. here's tutorial written on mantle
Comments
Post a Comment