class CategoryModel { String code; String message; List data; static CategoryModel fromMap(Map map) { CategoryModel category = CategoryModel(); category.code = map['code']; category.message = map['message']; category.data = CategoryData.fromMapList(map['data']); return category; } static List fromMapList(dynamic mapList) { List list = List(mapList.length); for (int i = 0; i < mapList.length; i++) { list[i] = fromMap(mapList[i]); } return list; } } class CategoryData { String mallCategoryId; String mallCategoryName; String image; List bxMallSubDto; static CategoryData fromMap(Map map) { CategoryData dataListBean = CategoryData(); dataListBean.mallCategoryId = map['mallCategoryId']; dataListBean.mallCategoryName = map['mallCategoryName']; dataListBean.image = map['image']; dataListBean.bxMallSubDto = BxMallSubDtoListBean.fromMapList(map['bxMallSubDto']); return dataListBean; } static List fromMapList(dynamic mapList) { List list = List(mapList.length); for (int i = 0; i < mapList.length; i++) { list[i] = fromMap(mapList[i]); } return list; } } class BxMallSubDtoListBean { String mallSubId; String mallCategoryId; String mallSubName; String comments; static BxMallSubDtoListBean fromMap(Map map) { BxMallSubDtoListBean bxMallSubDtoListBean = BxMallSubDtoListBean(); bxMallSubDtoListBean.mallSubId = map['mallSubId']; bxMallSubDtoListBean.mallCategoryId = map['mallCategoryId']; bxMallSubDtoListBean.mallSubName = map['mallSubName']; bxMallSubDtoListBean.comments = map['comments']; return bxMallSubDtoListBean; } static List fromMapList(dynamic mapList) { List list = List(mapList.length); for (int i = 0; i < mapList.length; i++) { list[i] = fromMap(mapList[i]); } return list; } }