32 lines
759 B
Objective-C
32 lines
759 B
Objective-C
//
|
|
// 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
|