import 'package:huixiang/data/mini_detail.dart'; import 'package:json_annotation/json_annotation.dart'; part 'product_set_meals.g.dart'; @JsonSerializable(explicitToJson: true) class ProductSetMeals { String? groupName = ''; int? totalNumber = 0; int? optionalNumber = 0; List? productInfoList = []; ProductSetMeals(); factory ProductSetMeals.fromJson(Map json) => _$ProductSetMealsFromJson(json); Map toJson() => _$ProductSetMealsToJson(this); } @JsonSerializable(explicitToJson: true) class SetMealsProductInfoList { String? productId = ''; String? productName = ''; String? productImg = ''; bool? allSku = false; List? skuInfoList = []; List? productAttrInfoList = []; int? number = 0; int count = 0; SetMealsProductInfoList(); factory SetMealsProductInfoList.fromJson(Map json) => _$SetMealsProductInfoListFromJson(json); Map toJson() => _$SetMealsProductInfoListToJson(this); } @JsonSerializable(explicitToJson: true) class SkuInfoList { String? id = ''; String? skuName = ''; List? productSkuAttrList = []; bool isSelected = false; SkuInfoList(); factory SkuInfoList.fromJson(Map json) => _$SkuInfoListFromJson(json); Map toJson() => _$SkuInfoListToJson(this); } @JsonSerializable(explicitToJson: true) class ProductSkuAttrList { String? id = ''; String? createTime = ''; String? createUser = ''; String? updateTime = ''; String? updateUser = ''; String? skuId = ''; String? attrId = ''; String? attrValueId = ''; dynamic sortOrder; int? isDelete = 0; ProductSkuAttrList(); factory ProductSkuAttrList.fromJson(Map json) => _$ProductSkuAttrListFromJson(json); Map toJson() => _$ProductSkuAttrListToJson(this); } @JsonSerializable(explicitToJson: true) class ProductAttrInfoList { String? attrId = ''; String? attrName = ''; List? attrValueList = []; String? selectSku = ''; ProductAttrInfoList(); factory ProductAttrInfoList.fromJson(Map json) => _$ProductAttrInfoListFromJson(json); Map toJson() => _$ProductAttrInfoListToJson(this); }