You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
232 lines
9.1 KiB
232 lines
9.1 KiB
// GENERATED CODE - DO NOT MODIFY BY HAND |
|
|
|
part of 'shoping_home_config.dart'; |
|
|
|
// ************************************************************************** |
|
// JsonSerializableGenerator |
|
// ************************************************************************** |
|
|
|
ShopingHomeConfig _$ShopingHomeConfigFromJson(Map<String, dynamic> json) => |
|
ShopingHomeConfig() |
|
..specialArea = (json['specialArea'] as List<dynamic>?) |
|
?.map((e) => SpecialArea.fromJson(e as Map<String, dynamic>)) |
|
.toList() |
|
..quickEntry = (json['quickEntry'] as List<dynamic>?) |
|
?.map((e) => QuickEntry.fromJson(e as Map<String, dynamic>)) |
|
.toList() |
|
..hotSearch = (json['hotSearch'] as List<dynamic>?) |
|
?.map((e) => e as String) |
|
.toList() |
|
..categoryGroup = (json['categoryGroup'] as List<dynamic>?) |
|
?.map((e) => CategoryGroup.fromJson(e as Map<String, dynamic>)) |
|
.toList(); |
|
|
|
Map<String, dynamic> _$ShopingHomeConfigToJson(ShopingHomeConfig instance) => |
|
<String, dynamic>{ |
|
'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<String, dynamic> json) => SpecialArea() |
|
..img = json['img'] as String? |
|
..id = json['id'] as String? |
|
..productList = (json['productList'] as List<dynamic>?) |
|
?.map((e) => ShopHomeProductList.fromJson(e as Map<String, dynamic>)) |
|
.toList(); |
|
|
|
Map<String, dynamic> _$SpecialAreaToJson(SpecialArea instance) => |
|
<String, dynamic>{ |
|
'img': instance.img, |
|
'id': instance.id, |
|
'productList': instance.productList?.map((e) => e.toJson()).toList(), |
|
}; |
|
|
|
ShopHomeProductList _$ShopHomeProductListFromJson(Map<String, dynamic> json) => |
|
ShopHomeProductList() |
|
..productImg = json['productImg'] as String? |
|
..productSkuVOList = (json['productSkuVOList'] as List<dynamic>?) |
|
?.map((e) => |
|
ShopHomeProductSkuVOList.fromJson(e as Map<String, dynamic>)) |
|
.toList() |
|
..productName = json['productName'] as String? |
|
..posShow = json['posShow'] as bool? |
|
..attrList = (json['attrList'] as List<dynamic>?) |
|
?.map((e) => AttrList.fromJson(e as Map<String, dynamic>)) |
|
.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<String, dynamic> _$ShopHomeProductListToJson( |
|
ShopHomeProductList instance) => |
|
<String, dynamic>{ |
|
'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<String, dynamic> 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<dynamic>?) |
|
?.map((e) => SkuAttrList.fromJson(e as Map<String, dynamic>)) |
|
.toList() |
|
..skuCode = json['skuCode'] as String?; |
|
|
|
Map<String, dynamic> _$ShopHomeProductSkuVOListToJson( |
|
ShopHomeProductSkuVOList instance) => |
|
<String, dynamic>{ |
|
'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<String, dynamic> json) => |
|
ShopHomeAttrList() |
|
..productId = json['productId'] as String? |
|
..isDelete = (json['isDelete'] as num?)?.toInt() |
|
..needImg = json['needImg'] as bool? |
|
..attrValueList = (json['attrValueList'] as List<dynamic>?) |
|
?.map( |
|
(e) => ShopHomeAttrValueList.fromJson(e as Map<String, dynamic>)) |
|
.toList() |
|
..id = json['id'] as String? |
|
..attrName = json['attrName'] as String?; |
|
|
|
Map<String, dynamic> _$ShopHomeAttrListToJson(ShopHomeAttrList instance) => |
|
<String, dynamic>{ |
|
'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<String, dynamic> 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<String, dynamic> _$ShopHomeAttrValueListToJson( |
|
ShopHomeAttrValueList instance) => |
|
<String, dynamic>{ |
|
'isDelete': instance.isDelete, |
|
'attrId': instance.attrId, |
|
'id': instance.id, |
|
'attrValue': instance.attrValue, |
|
'attrValueImg': instance.attrValueImg, |
|
}; |
|
|
|
QuickEntry _$QuickEntryFromJson(Map<String, dynamic> json) => QuickEntry() |
|
..img = json['img'] as String? |
|
..url = json['url'] as String? |
|
..id = json['id'] as String?; |
|
|
|
Map<String, dynamic> _$QuickEntryToJson(QuickEntry instance) => |
|
<String, dynamic>{ |
|
'img': instance.img, |
|
'url': instance.url, |
|
'id': instance.id, |
|
}; |
|
|
|
CategoryGroup _$CategoryGroupFromJson(Map<String, dynamic> json) => |
|
CategoryGroup() |
|
..groupList = (json['groupList'] as List<dynamic>?) |
|
?.map((e) => GroupList.fromJson(e as Map<String, dynamic>)) |
|
.toList() |
|
..groupCommodityName = json['groupCommodityName'] as String? |
|
..name = json['name'] as String?; |
|
|
|
Map<String, dynamic> _$CategoryGroupToJson(CategoryGroup instance) => |
|
<String, dynamic>{ |
|
'groupList': instance.groupList?.map((e) => e.toJson()).toList(), |
|
'groupCommodityName': instance.groupCommodityName, |
|
'name': instance.name, |
|
}; |
|
|
|
GroupList _$GroupListFromJson(Map<String, dynamic> 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<String, dynamic> _$GroupListToJson(GroupList instance) => <String, dynamic>{ |
|
'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, |
|
};
|
|
|