class CategoryModel { String code; String message; List data; static CategoryModel fromMap(Map map) { CategoryModel category = new CategoryModel(); category.code = map['code']; category.message = map['message']; category.data = CategoryData.fromMapList(map['data']); return category; } static List fromMapList(dynamic mapList) { List list = new 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 = new 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 = new 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 = new 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 = new List(mapList.length); for (int i = 0; i < mapList.length; i++) { list[i] = fromMap(mapList[i]); } return list; } }