我正在使用Mantle,它符合我的基本需求。在声明JSONKeyPathsByPropertyKey
和 some之后PropertyJSONTransformer
,我可以将 JSON Dictionary 转换为对象
ETPUser *user = [MTLJSONAdapter modelOfClass:[ETPUser class] fromJSONDictionary:jsonDict error:nil];
现在我想在这个转换过程中加入我的其他复杂字段(设置其他未在 中声明的属性JSONKeyPathsByPropertyKey
)jsonDict
,但找不到任何方法
如何钩入地幔?