import 'package:huixiang/data/product_set_meals.dart'; import 'package:huixiang/data/sku_attr_list.dart'; import 'package:huixiang/data/subscribe_param.dart'; import 'package:json_annotation/json_annotation.dart'; part 'mini_detail.g.dart'; @JsonSerializable(explicitToJson: true) class MiniDetail { String? id = ''; String? createTime = ''; String? createUser = ''; String? updateTime = ''; String? updateUser = ''; String? supplierName = ''; String? storeId = ''; String? categoryId = ''; String? groupId = ''; String? shortName = ''; String? productName = ''; String? sellDesc = ''; String? productCode = ''; String? weight = ''; String? applyPrice = ''; String? price = ''; int? stock = 0; int? sellCount = 0; int? needLogistics = 0; int? oversold = 0; int? status = 0; bool? posShow = false; int? productType = 0; int? productNumber = 0; int? setMeal = 0; int? attrStyle = 0; String? detail; String? details; int? isDelete = 0; String? printerFlag = ''; String? thumbnailImg; dynamic materialId; List? imgs = []; StoreDTO? storeDTO; List? attrList = []; List? productSkuVOList = []; String? shipAddress = ''; int? buyCount = 0; List? promotionShowVOList = []; int? buyNum = 0; dynamic productPlatterInfos; dynamic markProductNone; dynamic namePinyin; dynamic nameInitials; SubscribeParam? subscribeParam; MiniDetail(); factory MiniDetail.fromJson(Map json) => _$MiniDetailFromJson(json); Map toJson() => _$MiniDetailToJson(this); } @JsonSerializable(explicitToJson: true) class StoreDTO { String? id = ''; String? storeName = ''; String? nickName = ''; String? logo = ''; int? productCount = 0; int? soldNum = 0; StoreDTO(); factory StoreDTO.fromJson(Map json) => _$StoreDTOFromJson(json); Map toJson() => _$StoreDTOToJson(this); } @JsonSerializable(explicitToJson: true) class AttrList { String? productId = ''; String? attrName = ''; int? sortOrder = 0; bool? needImg = false; int? isDelete = 0; dynamic attrCode; String? id = ''; List? attrValueList = []; AttrList(); factory AttrList.fromJson(Map json) => _$AttrListFromJson(json); Map toJson() => _$AttrListToJson(this); } @JsonSerializable(explicitToJson: true) class AttrValueList { String? id = ''; String? attrId = ''; String? attrValue = ''; String? attrName = ''; String? attrValueImg = ''; dynamic sortOrder; int? isDelete = 0; @JsonKey(name: "attr_value_list") dynamic attrValues; dynamic attrValueCode; AttrValueList(); factory AttrValueList.fromJson(Map json) => _$AttrValueListFromJson(json); Map toJson() => _$AttrValueListToJson(this); } @JsonSerializable(explicitToJson: true) class ProductSkuVOList { String? id = ''; String? createTime = ''; String? createUser = ''; String? updateTime = ''; String? updateUser = ''; String? storeId = ''; String? skuCode = ''; String? skuNameStr = ''; String? productId = ''; String? skuPrice = ''; String? applyPrice = ''; dynamic vipPrice; dynamic skuImg; int? skuStock = 0; dynamic sort; String? setMeal = ''; double? weight; double? volume; int? isDelete = 0; dynamic material; dynamic version; dynamic skuAttrCodeDTOList; List? skuAttrList = []; List? productSetMeals; dynamic setMealDTOList; ProductSkuVOList(); factory ProductSkuVOList.fromJson(Map json) => _$ProductSkuVOListFromJson(json); Map toJson() => _$ProductSkuVOListToJson(this); }