https://my.oschina.net/wolx/blog/396925
/**
* 将属性名换为其他key去字典中取值
*
* @return 字典中的key是属性名,value是从字典中取值用的key
*/
+ (NSDictionary *)mj_replacedKeyFromPropertyName;
举例:
+ (NSDictionary *)mj_replacedKeyFromPropertyName{
return @{@"cid":@"id"};
}
/**
* 数组中需要转换的模型类
*
* @return 字典中的key是数组属性名,value是数组中存放模型的Class(Class类型或者NSString类型)
*/
+ (NSDictionary *)mj_objectClassInArray;
举例:
+ (NSDictionary *)mj_objectClassInArray{
return @{@"dayList" : @"DayListModel"};
}