// // TFUserCenterModel.m // TFReader // // Created by 谢腾飞 on 2020/12/11. // Copyright © 2020 xtfei_2011@126.com. All rights reserved. // #import "TFUserCenterModel.h" @implementation TFUserCenterModel + (NSDictionary *)modelCustomPropertyMapper { return @{ @"vip" : @"is_vip", @"masterUnit" : @"unit", @"masterRemain" : @"goldRemain", @"subRemain" : @"silverRemain" }; } + (instancetype)modelWithDictionary:(NSDictionary *)dictionary { TFUserCenterModel *t_model = [super modelWithDictionary:dictionary]; NSMutableArray *> *t_list = [NSMutableArray array]; for (NSArray *obj in t_model.panel_list) { NSArray *arr = [NSArray modelArrayWithClass:TFUserCenterListModel.class json:obj]; [t_list addObject:arr]; } t_model.panel_list = t_list; return t_model; } @end @implementation TFUserCenterListModel + (NSDictionary *)modelCustomPropertyMapper { return @{ @"enable" : @"is_click" }; } @end