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.
 
 
 
 
 
 

239 lines
9.8 KiB

// GENERATED CODE - DO NOT MODIFY BY HAND
part of 'mini_detail.dart';
// **************************************************************************
// JsonSerializableGenerator
// **************************************************************************
MiniDetail _$MiniDetailFromJson(Map<String, dynamic> json) => MiniDetail()
..id = json['id'] as String?
..createTime = json['createTime'] as String?
..createUser = json['createUser'] as String?
..updateTime = json['updateTime'] as String?
..updateUser = json['updateUser'] as String?
..supplierName = json['supplierName'] as String?
..storeId = json['storeId'] as String?
..categoryId = json['categoryId'] as String?
..groupId = json['groupId'] as String?
..shortName = json['shortName'] as String?
..productName = json['productName'] as String?
..sellDesc = json['sellDesc'] as String?
..productCode = json['productCode'] as String?
..weight = json['weight'] as String?
..applyPrice = json['applyPrice'] as String?
..price = json['price'] as String?
..stock = (json['stock'] as num?)?.toInt()
..sellCount = (json['sellCount'] as num?)?.toInt()
..needLogistics = (json['needLogistics'] as num?)?.toInt()
..oversold = (json['oversold'] as num?)?.toInt()
..status = (json['status'] as num?)?.toInt()
..posShow = json['posShow'] as bool?
..productType = (json['productType'] as num?)?.toInt()
..productNumber = (json['productNumber'] as num?)?.toInt()
..setMeal = (json['setMeal'] as num?)?.toInt()
..attrStyle = (json['attrStyle'] as num?)?.toInt()
..detail = json['detail'] as String?
..details = json['details'] as String?
..isDelete = (json['isDelete'] as num?)?.toInt()
..printerFlag = json['printerFlag'] as String?
..thumbnailImg = json['thumbnailImg'] as String?
..materialId = json['materialId']
..imgs = (json['imgs'] as List<dynamic>?)?.map((e) => e as String).toList()
..storeDTO = json['storeDTO'] == null
? null
: StoreDTO.fromJson(json['storeDTO'] as Map<String, dynamic>)
..attrList = (json['attrList'] as List<dynamic>?)
?.map((e) => AttrList.fromJson(e as Map<String, dynamic>))
.toList()
..productSkuVOList = (json['productSkuVOList'] as List<dynamic>?)
?.map((e) => ProductSkuVOList.fromJson(e as Map<String, dynamic>))
.toList()
..shipAddress = json['shipAddress'] as String?
..buyCount = (json['buyCount'] as num?)?.toInt()
..promotionShowVOList = json['promotionShowVOList'] as List<dynamic>?
..buyNum = (json['buyNum'] as num?)?.toInt()
..productPlatterInfos = json['productPlatterInfos']
..markProductNone = json['markProductNone']
..namePinyin = json['namePinyin']
..nameInitials = json['nameInitials']
..subscribeParam = json['subscribeParam'] == null
? null
: SubscribeParam.fromJson(json['subscribeParam'] as Map<String, dynamic>);
Map<String, dynamic> _$MiniDetailToJson(MiniDetail instance) =>
<String, dynamic>{
'id': instance.id,
'createTime': instance.createTime,
'createUser': instance.createUser,
'updateTime': instance.updateTime,
'updateUser': instance.updateUser,
'supplierName': instance.supplierName,
'storeId': instance.storeId,
'categoryId': instance.categoryId,
'groupId': instance.groupId,
'shortName': instance.shortName,
'productName': instance.productName,
'sellDesc': instance.sellDesc,
'productCode': instance.productCode,
'weight': instance.weight,
'applyPrice': instance.applyPrice,
'price': instance.price,
'stock': instance.stock,
'sellCount': instance.sellCount,
'needLogistics': instance.needLogistics,
'oversold': instance.oversold,
'status': instance.status,
'posShow': instance.posShow,
'productType': instance.productType,
'productNumber': instance.productNumber,
'setMeal': instance.setMeal,
'attrStyle': instance.attrStyle,
'detail': instance.detail,
'details': instance.details,
'isDelete': instance.isDelete,
'printerFlag': instance.printerFlag,
'thumbnailImg': instance.thumbnailImg,
'materialId': instance.materialId,
'imgs': instance.imgs,
'storeDTO': instance.storeDTO?.toJson(),
'attrList': instance.attrList?.map((e) => e.toJson()).toList(),
'productSkuVOList':
instance.productSkuVOList?.map((e) => e.toJson()).toList(),
'shipAddress': instance.shipAddress,
'buyCount': instance.buyCount,
'promotionShowVOList': instance.promotionShowVOList,
'buyNum': instance.buyNum,
'productPlatterInfos': instance.productPlatterInfos,
'markProductNone': instance.markProductNone,
'namePinyin': instance.namePinyin,
'nameInitials': instance.nameInitials,
'subscribeParam': instance.subscribeParam?.toJson(),
};
StoreDTO _$StoreDTOFromJson(Map<String, dynamic> json) => StoreDTO()
..id = json['id'] as String?
..storeName = json['storeName'] as String?
..nickName = json['nickName'] as String?
..logo = json['logo'] as String?
..productCount = (json['productCount'] as num?)?.toInt()
..soldNum = (json['soldNum'] as num?)?.toInt();
Map<String, dynamic> _$StoreDTOToJson(StoreDTO instance) => <String, dynamic>{
'id': instance.id,
'storeName': instance.storeName,
'nickName': instance.nickName,
'logo': instance.logo,
'productCount': instance.productCount,
'soldNum': instance.soldNum,
};
AttrList _$AttrListFromJson(Map<String, dynamic> json) => AttrList()
..productId = json['productId'] as String?
..attrName = json['attrName'] as String?
..sortOrder = (json['sortOrder'] as num?)?.toInt()
..needImg = json['needImg'] as bool?
..isDelete = (json['isDelete'] as num?)?.toInt()
..attrCode = json['attrCode']
..id = json['id'] as String?
..attrValueList = (json['attrValueList'] as List<dynamic>?)
?.map((e) => AttrValueList.fromJson(e as Map<String, dynamic>))
.toList();
Map<String, dynamic> _$AttrListToJson(AttrList instance) => <String, dynamic>{
'productId': instance.productId,
'attrName': instance.attrName,
'sortOrder': instance.sortOrder,
'needImg': instance.needImg,
'isDelete': instance.isDelete,
'attrCode': instance.attrCode,
'id': instance.id,
'attrValueList': instance.attrValueList?.map((e) => e.toJson()).toList(),
};
AttrValueList _$AttrValueListFromJson(Map<String, dynamic> json) =>
AttrValueList()
..id = json['id'] as String?
..attrId = json['attrId'] as String?
..attrValue = json['attrValue'] as String?
..attrName = json['attrName'] as String?
..attrValueImg = json['attrValueImg'] as String?
..sortOrder = json['sortOrder']
..isDelete = (json['isDelete'] as num?)?.toInt()
..attrValues = json['attr_value_list']
..attrValueCode = json['attrValueCode'];
Map<String, dynamic> _$AttrValueListToJson(AttrValueList instance) =>
<String, dynamic>{
'id': instance.id,
'attrId': instance.attrId,
'attrValue': instance.attrValue,
'attrName': instance.attrName,
'attrValueImg': instance.attrValueImg,
'sortOrder': instance.sortOrder,
'isDelete': instance.isDelete,
'attr_value_list': instance.attrValues,
'attrValueCode': instance.attrValueCode,
};
ProductSkuVOList _$ProductSkuVOListFromJson(Map<String, dynamic> json) =>
ProductSkuVOList()
..id = json['id'] as String?
..createTime = json['createTime'] as String?
..createUser = json['createUser'] as String?
..updateTime = json['updateTime'] as String?
..updateUser = json['updateUser'] as String?
..storeId = json['storeId'] as String?
..skuCode = json['skuCode'] as String?
..skuNameStr = json['skuNameStr'] as String?
..productId = json['productId'] as String?
..skuPrice = json['skuPrice'] as String?
..applyPrice = json['applyPrice'] as String?
..vipPrice = json['vipPrice']
..skuImg = json['skuImg']
..skuStock = (json['skuStock'] as num?)?.toInt()
..sort = json['sort']
..setMeal = json['setMeal'] as String?
..weight = (json['weight'] as num?)?.toDouble()
..volume = (json['volume'] as num?)?.toDouble()
..isDelete = (json['isDelete'] as num?)?.toInt()
..material = json['material']
..version = json['version']
..skuAttrCodeDTOList = json['skuAttrCodeDTOList']
..skuAttrList = (json['skuAttrList'] as List<dynamic>?)
?.map((e) => SkuAttrList.fromJson(e as Map<String, dynamic>))
.toList()
..productSetMeals = (json['productSetMeals'] as List<dynamic>?)
?.map((e) => ProductSetMeals.fromJson(e as Map<String, dynamic>))
.toList()
..setMealDTOList = json['setMealDTOList'];
Map<String, dynamic> _$ProductSkuVOListToJson(ProductSkuVOList instance) =>
<String, dynamic>{
'id': instance.id,
'createTime': instance.createTime,
'createUser': instance.createUser,
'updateTime': instance.updateTime,
'updateUser': instance.updateUser,
'storeId': instance.storeId,
'skuCode': instance.skuCode,
'skuNameStr': instance.skuNameStr,
'productId': instance.productId,
'skuPrice': instance.skuPrice,
'applyPrice': instance.applyPrice,
'vipPrice': instance.vipPrice,
'skuImg': instance.skuImg,
'skuStock': instance.skuStock,
'sort': instance.sort,
'setMeal': instance.setMeal,
'weight': instance.weight,
'volume': instance.volume,
'isDelete': instance.isDelete,
'material': instance.material,
'version': instance.version,
'skuAttrCodeDTOList': instance.skuAttrCodeDTOList,
'skuAttrList': instance.skuAttrList?.map((e) => e.toJson()).toList(),
'productSetMeals':
instance.productSetMeals?.map((e) => e.toJson()).toList(),
'setMealDTOList': instance.setMealDTOList,
};