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"};

}

上一篇下一篇

猜你喜欢

热点阅读