// GENERATED CODE - DO NOT MODIFY BY HAND part of 'shoping_home_config.dart'; // ************************************************************************** // JsonSerializableGenerator // ************************************************************************** ShopingHomeConfig _$ShopingHomeConfigFromJson(Map json) => ShopingHomeConfig() ..specialArea = (json['specialArea'] as List?) ?.map((e) => SpecialArea.fromJson(e as Map)) .toList() ..quickEntry = (json['quickEntry'] as List?) ?.map((e) => QuickEntry.fromJson(e as Map)) .toList() ..hotSearch = (json['hotSearch'] as List?) ?.map((e) => e as String) .toList() ..categoryGroup = (json['categoryGroup'] as List?) ?.map((e) => CategoryGroup.fromJson(e as Map)) .toList(); Map _$ShopingHomeConfigToJson(ShopingHomeConfig instance) => { 'specialArea': instance.specialArea?.map((e) => e.toJson()).toList(), 'quickEntry': instance.quickEntry?.map((e) => e.toJson()).toList(), 'hotSearch': instance.hotSearch, 'categoryGroup': instance.categoryGroup?.map((e) => e.toJson()).toList(), }; SpecialArea _$SpecialAreaFromJson(Map json) => SpecialArea() ..img = json['img'] as String? ..id = json['id'] as String? ..productList = (json['productList'] as List?) ?.map((e) => ShopHomeProductList.fromJson(e as Map)) .toList(); Map _$SpecialAreaToJson(SpecialArea instance) => { 'img': instance.img, 'id': instance.id, 'productList': instance.productList?.map((e) => e.toJson()).toList(), }; ShopHomeProductList _$ShopHomeProductListFromJson(Map json) => ShopHomeProductList() ..productImg = json['productImg'] as String? ..productSkuVOList = (json['productSkuVOList'] as List?) ?.map((e) => ShopHomeProductSkuVOList.fromJson(e as Map)) .toList() ..productName = json['productName'] as String? ..posShow = json['posShow'] as bool? ..attrList = (json['attrList'] as List?) ?.map((e) => AttrList.fromJson(e as Map)) .toList() ..price = json['price'] as String? ..productPrice = json['productPrice'] as String? ..promotionPrice = json['promotionPrice'] as String? ..sellCount = (json['sellCount'] as num?)?.toInt() ..id = json['id'] as String? ..applyPrice = json['applyPrice'] as String? ..productId = json['productId'] as String? ..productStock = (json['productStock'] as num?)?.toInt() ..stock = (json['stock'] as num?)?.toInt() ..status = (json['status'] as num?)?.toInt(); Map _$ShopHomeProductListToJson( ShopHomeProductList instance) => { 'productImg': instance.productImg, 'productSkuVOList': instance.productSkuVOList?.map((e) => e.toJson()).toList(), 'productName': instance.productName, 'posShow': instance.posShow, 'attrList': instance.attrList?.map((e) => e.toJson()).toList(), 'price': instance.price, 'productPrice': instance.productPrice, 'promotionPrice': instance.promotionPrice, 'sellCount': instance.sellCount, 'id': instance.id, 'applyPrice': instance.applyPrice, 'productId': instance.productId, 'productStock': instance.productStock, 'stock': instance.stock, 'status': instance.status, }; ShopHomeProductSkuVOList _$ShopHomeProductSkuVOListFromJson( Map json) => ShopHomeProductSkuVOList() ..productId = json['productId'] as String? ..isDelete = (json['isDelete'] as num?)?.toInt() ..setMeal = json['setMeal'] as String? ..updateUser = json['updateUser'] as String? ..skuPrice = json['skuPrice'] as String? ..skuStock = (json['skuStock'] as num?)?.toInt() ..weight = (json['weight'] as num?)?.toInt() ..updateTime = json['updateTime'] as String? ..storeId = json['storeId'] as String? ..volume = (json['volume'] as num?)?.toInt() ..skuNameStr = json['skuNameStr'] as String? ..createTime = json['createTime'] as String? ..createUser = json['createUser'] as String? ..id = json['id'] as String? ..applyPrice = json['applyPrice'] as String? ..skuAttrList = (json['skuAttrList'] as List?) ?.map((e) => SkuAttrList.fromJson(e as Map)) .toList() ..skuCode = json['skuCode'] as String?; Map _$ShopHomeProductSkuVOListToJson( ShopHomeProductSkuVOList instance) => { 'productId': instance.productId, 'isDelete': instance.isDelete, 'setMeal': instance.setMeal, 'updateUser': instance.updateUser, 'skuPrice': instance.skuPrice, 'skuStock': instance.skuStock, 'weight': instance.weight, 'updateTime': instance.updateTime, 'storeId': instance.storeId, 'volume': instance.volume, 'skuNameStr': instance.skuNameStr, 'createTime': instance.createTime, 'createUser': instance.createUser, 'id': instance.id, 'applyPrice': instance.applyPrice, 'skuAttrList': instance.skuAttrList?.map((e) => e.toJson()).toList(), 'skuCode': instance.skuCode, }; ShopHomeAttrList _$ShopHomeAttrListFromJson(Map json) => ShopHomeAttrList() ..productId = json['productId'] as String? ..isDelete = (json['isDelete'] as num?)?.toInt() ..needImg = json['needImg'] as bool? ..attrValueList = (json['attrValueList'] as List?) ?.map( (e) => ShopHomeAttrValueList.fromJson(e as Map)) .toList() ..id = json['id'] as String? ..attrName = json['attrName'] as String?; Map _$ShopHomeAttrListToJson(ShopHomeAttrList instance) => { 'productId': instance.productId, 'isDelete': instance.isDelete, 'needImg': instance.needImg, 'attrValueList': instance.attrValueList?.map((e) => e.toJson()).toList(), 'id': instance.id, 'attrName': instance.attrName, }; ShopHomeAttrValueList _$ShopHomeAttrValueListFromJson( Map json) => ShopHomeAttrValueList() ..isDelete = (json['isDelete'] as num?)?.toInt() ..attrId = json['attrId'] as String? ..id = json['id'] as String? ..attrValue = json['attrValue'] as String? ..attrValueImg = json['attrValueImg'] as String?; Map _$ShopHomeAttrValueListToJson( ShopHomeAttrValueList instance) => { 'isDelete': instance.isDelete, 'attrId': instance.attrId, 'id': instance.id, 'attrValue': instance.attrValue, 'attrValueImg': instance.attrValueImg, }; QuickEntry _$QuickEntryFromJson(Map json) => QuickEntry() ..img = json['img'] as String? ..url = json['url'] as String? ..id = json['id'] as String?; Map _$QuickEntryToJson(QuickEntry instance) => { 'img': instance.img, 'url': instance.url, 'id': instance.id, }; CategoryGroup _$CategoryGroupFromJson(Map json) => CategoryGroup() ..groupList = (json['groupList'] as List?) ?.map((e) => GroupList.fromJson(e as Map)) .toList() ..groupCommodityName = json['groupCommodityName'] as String? ..name = json['name'] as String?; Map _$CategoryGroupToJson(CategoryGroup instance) => { 'groupList': instance.groupList?.map((e) => e.toJson()).toList(), 'groupCommodityName': instance.groupCommodityName, 'name': instance.name, }; GroupList _$GroupListFromJson(Map json) => GroupList() ..isDelete = (json['isDelete'] as num?)?.toInt() ..updateUser = json['updateUser'] as String? ..updateTime = json['updateTime'] as String? ..groupImg = json['groupImg'] as String? ..sort = (json['sort'] as num?)?.toInt() ..storeId = json['storeId'] as String? ..groupName = json['groupName'] as String? ..createTime = json['createTime'] as String? ..kitchenGroup = (json['kitchenGroup'] as num?)?.toInt() ..printerId = json['printerId'] as String? ..createUser = json['createUser'] as String? ..isCharge = (json['isCharge'] as num?)?.toInt() ..id = json['id'] as String?; Map _$GroupListToJson(GroupList instance) => { 'isDelete': instance.isDelete, 'updateUser': instance.updateUser, 'updateTime': instance.updateTime, 'groupImg': instance.groupImg, 'sort': instance.sort, 'storeId': instance.storeId, 'groupName': instance.groupName, 'createTime': instance.createTime, 'kitchenGroup': instance.kitchenGroup, 'printerId': instance.printerId, 'createUser': instance.createUser, 'isCharge': instance.isCharge, 'id': instance.id, };