objective c - Convert NSDictionary object to Object -
i'm receiving json payload of data mvc api in ios application. nsjsonserialization serializes object. object contains properties , list of data objects. data objects of type nsdictionary. have class structure of these objects in objc (im using odata want convert objects odataobject equivalent).
so i'd know how can cast/convert these nsdictionary objects corresponding odataobject class (or object really)?
you can't cast nsdictionary instance odataobject, either need explicitly convert instance or create appropriate instance when deserialise json.
you @ using setvaluesforkeyswithdictionary: push dictionary contents instance using kvc. whether work in case depends on odataobject definition (from github? not convinced) , dictionary contents...
Comments
Post a Comment