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

Popular posts from this blog

angular ui router - 10 digest iterations reached in angularjs when using $state.go -

symfony - InvalidConfigurationException in SecurityExtension.php line 429: No authentication listener registered for firewall "secured_area" -

javascript - Can Piwik report referrer in real time? -