第一种
// if ([response[@"data"]objectForKey:@"findGoodGoods"] != nil && ![[response[@"data"]objectForKey:@"findGoodGoods"] isKindOfClass:[NSNull class]] ){
// for(NSDictionary *dict in [response[@"data"]objectForKey:@"findGoodGoods"]){
// FH_QZNewListModel *model = [FH_QZNewListModel mj_objectWithKeyValues:dict];
// [findGoodGoods addObject:model];
// }
// }
第二种
if([selfisNotNULL:[response[@"data"]objectForKey:@"findGoodGoods"]]) {
for(NSDictionary*dictin[response[@"data"]objectForKey:@"findGoodGoods"]){
FH_QZNewListModel *model = [FH_QZNewListModel mj_objectWithKeyValues:dict];
[findGoodGoodsaddObject:model];
}
}
- (BOOL)isNotNULL:(id)obj{
return NULL!=obj &&nil!=obj && (NULL)!=obj && (Nil)!=obj && [NSNullnull]!=obj ? YES:NO;
}
第三种
findGoodGoods =[FH_QZNewListModel mj_objectArrayWithKeyValuesArray:[response[@"data"]objectForKey:@"findGoodGoods"]];