- mantle中自带的mtl_identityPropertyMapWithModel 函数,可以做转换,用法
+(NSDictionary *)JSONKeyPathsByPropertyKey
{
NSMutableDictionary *mapping = [[NSDictionary mtl_identityPropertyMapWithModel:self] mutableCopy];
return mapping;
}
+(NSDictionary *)JSONKeyPathsByPropertyKey
{
NSMutableDictionary *mapping = [[NSDictionary mtl_identityPropertyMapWithModel:self] mutableCopy];
return mapping;
}
本文标题:Mantle 自动生成JSONKeyPathsByPropert
本文链接:https://www.haomeiwen.com/subject/zmplvttx.html
网友评论