RestKit - Map keypath of an array to the object inside of that array

依然范特西╮ 提交于 2019-12-05 14:15:50

I'd have to say that you should create your own JSON serialisation class and register it. You class will deserialise as normal but then check and mutate the result to decompose the type information.


Original answer that ignored the array problem:

You need to use addAttributeMappingFromKeyOfRepresentationToAttribute: which allows you to extract that key and use it as a value.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!