iOS MJExtension 特殊key值转换
2019-07-23 本文已影响0人
代码的苦恼
后台返回参”newCustomers“数转换成”Customers“
1. 在.h页
@property (nonatomic,strong) NSString *newCustomers;
+ (NSDictionary*)replacedKeyFromPropertyName;
2.在.m页
+ (NSDictionary*)replacedKeyFromPropertyName{
return @{@"Customers":@"newCustomers"};
}