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.
 
 
 
 
 
 

114 lines
4.5 KiB

// GENERATED CODE - DO NOT MODIFY BY HAND
part of 'product_set_meals.dart';
// **************************************************************************
// JsonSerializableGenerator
// **************************************************************************
ProductSetMeals _$ProductSetMealsFromJson(Map<String, dynamic> json) =>
ProductSetMeals()
..groupName = json['groupName'] as String?
..totalNumber = (json['totalNumber'] as num?)?.toInt()
..optionalNumber = (json['optionalNumber'] as num?)?.toInt()
..productInfoList = (json['productInfoList'] as List<dynamic>?)
?.map((e) =>
SetMealsProductInfoList.fromJson(e as Map<String, dynamic>))
.toList();
Map<String, dynamic> _$ProductSetMealsToJson(ProductSetMeals instance) =>
<String, dynamic>{
'groupName': instance.groupName,
'totalNumber': instance.totalNumber,
'optionalNumber': instance.optionalNumber,
'productInfoList':
instance.productInfoList?.map((e) => e.toJson()).toList(),
};
SetMealsProductInfoList _$SetMealsProductInfoListFromJson(
Map<String, dynamic> json) =>
SetMealsProductInfoList()
..productId = json['productId'] as String?
..productName = json['productName'] as String?
..productImg = json['productImg'] as String?
..allSku = json['allSku'] as bool?
..skuInfoList = (json['skuInfoList'] as List<dynamic>?)
?.map((e) => SkuInfoList.fromJson(e as Map<String, dynamic>))
.toList()
..productAttrInfoList = (json['productAttrInfoList'] as List<dynamic>?)
?.map((e) => ProductAttrInfoList.fromJson(e as Map<String, dynamic>))
.toList()
..number = (json['number'] as num?)?.toInt();
Map<String, dynamic> _$SetMealsProductInfoListToJson(
SetMealsProductInfoList instance) =>
<String, dynamic>{
'productId': instance.productId,
'productName': instance.productName,
'productImg': instance.productImg,
'allSku': instance.allSku,
'skuInfoList': instance.skuInfoList?.map((e) => e.toJson()).toList(),
'productAttrInfoList':
instance.productAttrInfoList?.map((e) => e.toJson()).toList(),
'number': instance.number,
};
SkuInfoList _$SkuInfoListFromJson(Map<String, dynamic> json) => SkuInfoList()
..id = json['id'] as String?
..skuName = json['skuName'] as String?
..productSkuAttrList = (json['productSkuAttrList'] as List<dynamic>?)
?.map((e) => ProductSkuAttrList.fromJson(e as Map<String, dynamic>))
.toList();
Map<String, dynamic> _$SkuInfoListToJson(SkuInfoList instance) =>
<String, dynamic>{
'id': instance.id,
'skuName': instance.skuName,
'productSkuAttrList':
instance.productSkuAttrList?.map((e) => e.toJson()).toList(),
};
ProductSkuAttrList _$ProductSkuAttrListFromJson(Map<String, dynamic> json) =>
ProductSkuAttrList()
..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?
..skuId = json['skuId'] as String?
..attrId = json['attrId'] as String?
..attrValueId = json['attrValueId'] as String?
..sortOrder = json['sortOrder']
..isDelete = (json['isDelete'] as num?)?.toInt();
Map<String, dynamic> _$ProductSkuAttrListToJson(ProductSkuAttrList instance) =>
<String, dynamic>{
'id': instance.id,
'createTime': instance.createTime,
'createUser': instance.createUser,
'updateTime': instance.updateTime,
'updateUser': instance.updateUser,
'skuId': instance.skuId,
'attrId': instance.attrId,
'attrValueId': instance.attrValueId,
'sortOrder': instance.sortOrder,
'isDelete': instance.isDelete,
};
ProductAttrInfoList _$ProductAttrInfoListFromJson(Map<String, dynamic> json) =>
ProductAttrInfoList()
..attrId = json['attrId'] as String?
..attrName = json['attrName'] as String?
..attrValueList = (json['attrValueList'] as List<dynamic>?)
?.map((e) => AttrValueList.fromJson(e as Map<String, dynamic>))
.toList()
..selectSku = json['selectSku'] as String?;
Map<String, dynamic> _$ProductAttrInfoListToJson(
ProductAttrInfoList instance) =>
<String, dynamic>{
'attrId': instance.attrId,
'attrName': instance.attrName,
'attrValueList': instance.attrValueList?.map((e) => e.toJson()).toList(),
'selectSku': instance.selectSku,
};