草庐IT

MTLModel

全部标签

ios - 将 MTLModel 子类的嵌套数据结构序列化为 JSON

我遇到了关于Mantleframework的问题来自Github。我要执行以下操作@interfaceClassA:MTLModel@property(strong,non-atomic)ClassB*instanceOfB;@end@implementationClassA+(NSDictionary*)JSONKeyPathsByPropertyKey{return[super.JSONKeyPathsByPropertyKeymtl_dictionaryByAddingEntriesFromDictionary:@{@"instanceOfB":@"user"}];}@inter