import 'package:huixiang/data/mini_detail.dart'; import 'package:huixiang/data/sku_attr_list.dart'; import 'package:json_annotation/json_annotation.dart'; part 'shoping_home_config.g.dart'; @JsonSerializable(explicitToJson: true) class ShopingHomeConfig { List? specialArea = []; List? quickEntry = []; List? hotSearch = []; List? categoryGroup = []; ShopingHomeConfig(); factory ShopingHomeConfig.fromJson(Map json) => _$ShopingHomeConfigFromJson(json); Map toJson() => _$ShopingHomeConfigToJson(this); } @JsonSerializable(explicitToJson: true) class SpecialArea { String? img = ''; String? id = ''; List? productList = []; SpecialArea(); factory SpecialArea.fromJson(Map json) => _$SpecialAreaFromJson(json); Map toJson() => _$SpecialAreaToJson(this); } @JsonSerializable(explicitToJson: true) class ShopHomeProductList { String? productImg = ''; List? productSkuVOList = []; String? productName = ''; bool? posShow = false; List? attrList = []; String? price = ''; String? productPrice = ''; String? promotionPrice = ''; int? sellCount = 0; String? id = ''; String? applyPrice = ''; String? productId = ''; int? productStock = 0; int? stock = 0; int? status = 0; ShopHomeProductList(); factory ShopHomeProductList.fromJson(Map json) => _$ShopHomeProductListFromJson(json); Map toJson() => _$ShopHomeProductListToJson(this); } @JsonSerializable(explicitToJson: true) class ShopHomeProductSkuVOList { String? productId = ''; int? isDelete = 0; String? setMeal = ''; String? updateUser = ''; String? skuPrice = ''; int? skuStock = 0; int? weight = 0; String? updateTime = ''; String? storeId = ''; int? volume = 0; String? skuNameStr = ''; String? createTime = ''; String? createUser = ''; String? id = ''; String? applyPrice = ''; List? skuAttrList = []; String? skuCode = ''; ShopHomeProductSkuVOList(); factory ShopHomeProductSkuVOList.fromJson(Map json) => _$ShopHomeProductSkuVOListFromJson(json); Map toJson() => _$ShopHomeProductSkuVOListToJson(this); } @JsonSerializable(explicitToJson: true) class ShopHomeAttrList { String? productId = ''; int? isDelete = 0; bool? needImg = false; List? attrValueList = []; String? id = ''; String? attrName = ''; ShopHomeAttrList(); factory ShopHomeAttrList.fromJson(Map json) => _$ShopHomeAttrListFromJson(json); Map toJson() => _$ShopHomeAttrListToJson(this); } @JsonSerializable(explicitToJson: true) class ShopHomeAttrValueList { int? isDelete = 0; String? attrId = ''; String? id = ''; String? attrValue = ''; String? attrValueImg = ''; ShopHomeAttrValueList(); factory ShopHomeAttrValueList.fromJson(Map json) => _$ShopHomeAttrValueListFromJson(json); Map toJson() => _$ShopHomeAttrValueListToJson(this); } @JsonSerializable(explicitToJson: true) class QuickEntry { String? img = ''; String? url = ''; String? id = ''; QuickEntry(); factory QuickEntry.fromJson(Map json) => _$QuickEntryFromJson(json); Map toJson() => _$QuickEntryToJson(this); } @JsonSerializable(explicitToJson: true) class CategoryGroup { List? groupList = []; String? groupCommodityName = ''; String? name = ''; CategoryGroup(); factory CategoryGroup.fromJson(Map json) => _$CategoryGroupFromJson(json); Map toJson() => _$CategoryGroupToJson(this); } @JsonSerializable(explicitToJson: true) class GroupList { int? isDelete = 0; String? updateUser = ''; String? updateTime = ''; String? groupImg = ''; int? sort = 0; String? storeId = ''; String? groupName = ''; String? createTime = ''; int? kitchenGroup = 0; String? printerId = ''; String? createUser = ''; int? isCharge = 0; String? id = ''; GroupList(); factory GroupList.fromJson(Map json) => _$GroupListFromJson(json); Map toJson() => _$GroupListToJson(this); }