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