import 'package:huixiang/data/mini_detail.dart'; import 'package:huixiang/data/sku_attr_list.dart'; import 'package:huixiang/generated/json/base/json_field.dart'; import 'package:huixiang/generated/json/shoping_home_config.g.dart'; import 'dart:convert'; export 'package:huixiang/generated/json/shoping_home_config.g.dart'; @JsonSerializable() class ShopingHomeConfig { List? specialArea = []; List? quickEntry = []; List? hotSearch = []; List? categoryGroup = []; ShopingHomeConfig(); factory ShopingHomeConfig.fromJson(Map json) => $ShopingHomeConfigFromJson(json); Map toJson() => $ShopingHomeConfigToJson(this); @override String toString() { return jsonEncode(this); } } @JsonSerializable() class SpecialArea { String? img = ''; String? id = ''; List? productList = []; SpecialArea(); factory SpecialArea.fromJson(Map json) => $SpecialAreaFromJson(json); Map toJson() => $SpecialAreaToJson(this); @override String toString() { return jsonEncode(this); } } @JsonSerializable() 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); @override String toString() { return jsonEncode(this); } } @JsonSerializable() 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); @override String toString() { return jsonEncode(this); } } @JsonSerializable() 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); @override String toString() { return jsonEncode(this); } } @JsonSerializable() 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); @override String toString() { return jsonEncode(this); } } @JsonSerializable() class QuickEntry { String? img = ''; String? url = ''; String? id = ''; QuickEntry(); factory QuickEntry.fromJson(Map json) => $QuickEntryFromJson(json); Map toJson() => $QuickEntryToJson(this); @override String toString() { return jsonEncode(this); } } @JsonSerializable() class CategoryGroup { List? groupList = []; String? groupCommodityName = ''; String? name = ''; CategoryGroup(); factory CategoryGroup.fromJson(Map json) => $CategoryGroupFromJson(json); Map toJson() => $CategoryGroupToJson(this); @override String toString() { return jsonEncode(this); } } @JsonSerializable() 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); @override String toString() { return jsonEncode(this); } }