1234567891011121314151617181920212223242526272829303132333435363738 |
- //
- // FKPointDetailReform.m
- // FirstLink
- //
- // Created by jack on 16/3/12.
- // Copyright © 2016年 FirstLink. All rights reserved.
- //
- #import "FKPointDetailReform.h"
- @implementation FKPointDetailReform
- + (FKPointDetailViewModel *)parserViewModelWithDict:(NSDictionary *)dict{
- if ([dict[@"data"] isKindOfClass:[NSDictionary class]]){
- FKPointDetailViewModel *model = [[FKPointDetailViewModel alloc]init];
- [model mts_setValuesForKeysWithDictionary:dict[@"data"]];
- return model;
- }
- return nil;
- }
- + (NSArray *)parserMoreBillWithDict:(NSDictionary *)dict{
- if ([dict[@"data"] isKindOfClass:[NSDictionary class]]) {
- NSArray *array = dict[@"data"][@"list"];
- if ([array isKindOfClass:[NSArray class]] && array.count > 0){
- NSMutableArray *arrayM = [NSMutableArray arrayWithCapacity:array.count];
- for (NSDictionary *itemDict in array) {
- FKPointBillItem *item = [[FKPointBillItem alloc]init];
- [item mts_setValuesForKeysWithDictionary:itemDict];
- [arrayM addObject:item];
- }
- return arrayM;
- }
- }
- return nil;
- }
- @end
|