ios/digitalCurrency/Controllers/我的/model/HelpCenterModel.m
//
//  HelpCenterModel.m
//  digitalCurrency
//
//  Created by chu on 2019/8/8.
//  Copyright © 2019年 GIBX. All rights reserved.
//

#import "HelpCenterModel.h"

@implementation HelpCenterModel

- (void)setValue:(id)value forUndefinedKey:(NSString *)key{

}

- (instancetype)initWithDictionary:(NSDictionary *)dic{
    if (self = [super init]) {
        [self setValuesForKeysWithDictionary:dic];
    }
    return self;
}

+ (instancetype)modelWithDictionary:(NSDictionary *)dic{
    NSMutableDictionary *muDic = [NSMutableDictionary dictionaryWithDictionary:dic];
    NSArray *content = muDic[@"content"];
    NSMutableArray *muArr = [NSMutableArray arrayWithCapacity:0];
    for (NSDictionary *contentdic in content) {
        HelpCenterContentModel *model = [HelpCenterContentModel modelWithDictionary:contentdic];
        [muArr addObject:model];
    }
    [muDic setObject:muArr forKey:@"content"];
    return [[self alloc] initWithDictionary:muDic];
}


@end

@implementation HelpCenterContentModel
- (void)setValue:(id)value forUndefinedKey:(NSString *)key{
    if ([key isEqualToString:@"id"]) {
        self.ID = value;
    }
}

- (instancetype)initWithDictionary:(NSDictionary *)dic{
    if (self = [super init]) {
        [self setValuesForKeysWithDictionary:dic];
    }
    return self;
}

+ (instancetype)modelWithDictionary:(NSDictionary *)dic{
    return [[self alloc] initWithDictionary:dic];
}

@end
