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

mysql - FireDac error 314 - but DLLs are in program directory -

git - How to list all releases of public repository with GitHub API V3 -

c++ - Getting C2512 "no default constructor" for `ClassA` error on the first parentheses of constructor for `ClassB`? -