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.
106 lines
2.2 KiB
106 lines
2.2 KiB
1 month ago
|
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<SetMealsProductInfoList>? productInfoList = [];
|
||
|
|
||
|
ProductSetMeals();
|
||
|
|
||
|
factory ProductSetMeals.fromJson(Map<String, dynamic> json) => _$ProductSetMealsFromJson(json);
|
||
|
|
||
|
Map<String, dynamic> toJson() => _$ProductSetMealsToJson(this);
|
||
|
|
||
|
|
||
|
}
|
||
|
|
||
|
|
||
|
@JsonSerializable(explicitToJson: true)
|
||
|
class SetMealsProductInfoList {
|
||
|
String? productId = '';
|
||
|
String? productName = '';
|
||
|
String? productImg = '';
|
||
|
bool? allSku = false;
|
||
|
List<SkuInfoList>? skuInfoList = [];
|
||
|
List<ProductAttrInfoList>? productAttrInfoList = [];
|
||
|
int? number = 0;
|
||
|
|
||
|
int count = 0;
|
||
|
|
||
|
SetMealsProductInfoList();
|
||
|
|
||
|
factory SetMealsProductInfoList.fromJson(Map<String, dynamic> json) => _$SetMealsProductInfoListFromJson(json);
|
||
|
|
||
|
Map<String, dynamic> toJson() => _$SetMealsProductInfoListToJson(this);
|
||
|
|
||
|
|
||
|
}
|
||
|
|
||
|
|
||
|
@JsonSerializable(explicitToJson: true)
|
||
|
class SkuInfoList {
|
||
|
String? id = '';
|
||
|
String? skuName = '';
|
||
|
List<ProductSkuAttrList>? productSkuAttrList = [];
|
||
|
|
||
|
bool isSelected = false;
|
||
|
|
||
|
SkuInfoList();
|
||
|
|
||
|
factory SkuInfoList.fromJson(Map<String, dynamic> json) => _$SkuInfoListFromJson(json);
|
||
|
|
||
|
Map<String, dynamic> 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<String, dynamic> json) => _$ProductSkuAttrListFromJson(json);
|
||
|
|
||
|
Map<String, dynamic> toJson() => _$ProductSkuAttrListToJson(this);
|
||
|
|
||
|
|
||
|
}
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
@JsonSerializable(explicitToJson: true)
|
||
|
class ProductAttrInfoList {
|
||
|
String? attrId = '';
|
||
|
String? attrName = '';
|
||
|
List<AttrValueList>? attrValueList = [];
|
||
|
|
||
|
String? selectSku = '';
|
||
|
|
||
|
ProductAttrInfoList();
|
||
|
|
||
|
factory ProductAttrInfoList.fromJson(Map<String, dynamic> json) => _$ProductAttrInfoListFromJson(json);
|
||
|
|
||
|
Map<String, dynamic> toJson() => _$ProductAttrInfoListToJson(this);
|
||
|
|
||
|
|
||
|
}
|