Няма описание

FKPointDetailReform.m 1.1KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. //
  2. // FKPointDetailReform.m
  3. // FirstLink
  4. //
  5. // Created by jack on 16/3/12.
  6. // Copyright © 2016年 FirstLink. All rights reserved.
  7. //
  8. #import "FKPointDetailReform.h"
  9. @implementation FKPointDetailReform
  10. + (FKPointDetailViewModel *)parserViewModelWithDict:(NSDictionary *)dict{
  11. if ([dict[@"data"] isKindOfClass:[NSDictionary class]]){
  12. FKPointDetailViewModel *model = [[FKPointDetailViewModel alloc]init];
  13. [model mts_setValuesForKeysWithDictionary:dict[@"data"]];
  14. return model;
  15. }
  16. return nil;
  17. }
  18. + (NSArray *)parserMoreBillWithDict:(NSDictionary *)dict{
  19. if ([dict[@"data"] isKindOfClass:[NSDictionary class]]) {
  20. NSArray *array = dict[@"data"][@"list"];
  21. if ([array isKindOfClass:[NSArray class]] && array.count > 0){
  22. NSMutableArray *arrayM = [NSMutableArray arrayWithCapacity:array.count];
  23. for (NSDictionary *itemDict in array) {
  24. FKPointBillItem *item = [[FKPointBillItem alloc]init];
  25. [item mts_setValuesForKeysWithDictionary:itemDict];
  26. [arrayM addObject:item];
  27. }
  28. return arrayM;
  29. }
  30. }
  31. return nil;
  32. }
  33. @end