You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
759 B
31 lines
759 B
// |
|
// TFUserDataModel.m |
|
// TFReader |
|
// |
|
// Created by 谢腾飞 on 2020/12/11. |
|
// Copyright © 2020 xtfei_2011@126.com. All rights reserved. |
|
// |
|
|
|
#import "TFUserDataModel.h" |
|
|
|
@implementation TFUserDataModel |
|
|
|
+ (instancetype)modelWithDictionary:(NSDictionary *)dictionary |
|
{ |
|
NSMutableArray<NSArray <TFUserDataListModel *> *> *t_list = [NSMutableArray array]; |
|
NSArray *t_arr = dictionary[@"panel_list"]; |
|
for (NSArray *obj in t_arr) { |
|
NSArray<TFUserDataListModel *> *arr = [NSArray modelArrayWithClass:TFUserDataListModel.class json:obj]; |
|
[t_list addObject:arr]; |
|
} |
|
TFUserDataModel *t_model = [[self alloc] init]; |
|
t_model.panel_list = [t_list copy]; |
|
return t_model; |
|
} |
|
|
|
@end |
|
|
|
|
|
@implementation TFUserDataListModel |
|
|
|
@end
|
|
|