// GENERATED CODE - DO NOT MODIFY BY HAND part of 'shopping_cart.dart'; // ************************************************************************** // JsonSerializableGenerator // ************************************************************************** ShoppingCart _$ShoppingCartFromJson(Map json) => ShoppingCart() ..cartSum = json['cartSum'] ..selectDiscount = (json['selectDiscount'] as num?)?.toInt() ..numberOfPeople = (json['numberOfPeople'] as num?)?.toInt() ..selected = (json['selected'] as num?)?.toInt() ..shoppingCartSkuItemList = (json['shoppingCartSkuItemList'] as List?) ?.map((e) => SkuItemList.fromJson(e as Map)) .toList() ..storeId = json['storeId'] ..storeName = json['storeName'] as String? ..tableId = json['tableId'] as String? ..promotionInfoList = (json['promotionInfoList'] as List?) ?.map((e) => PromotionInfo.fromJson(e as Map)) .toList() ..couponList = (json['couponList'] as List?) ?.map((e) => CouponList.fromJson(e as Map)) .toList(); Map _$ShoppingCartToJson(ShoppingCart instance) => { 'cartSum': instance.cartSum, 'selectDiscount': instance.selectDiscount, 'numberOfPeople': instance.numberOfPeople, 'selected': instance.selected, 'shoppingCartSkuItemList': instance.shoppingCartSkuItemList?.map((e) => e.toJson()).toList(), 'storeId': instance.storeId, 'storeName': instance.storeName, 'tableId': instance.tableId, 'promotionInfoList': instance.promotionInfoList?.map((e) => e.toJson()).toList(), 'couponList': instance.couponList?.map((e) => e.toJson()).toList(), }; SkuItemList _$SkuItemListFromJson(Map json) => SkuItemList() ..buyNum = (json['buyNum'] as num?)?.toInt() ..createTime = json['createTime'] as String? ..groupId = json['groupId'] ..id = json['id'] ..platterList = (json['platterList'] as List?) ?.map((e) => PlatterList.fromJson(e as Map)) .toList() ..setMealDataList = (json['setMealDataList'] as List?) ?.map((e) => SetMealData.fromJson(e as Map)) .toList() ..productId = json['productId'] as String? ..productName = json['productName'] as String? ..selected = (json['selected'] as num?)?.toInt() ..skuImg = json['skuImg'] as String? ..skuName = json['skuName'] as String? ..skuPrice = json['skuPrice'] as String? ..skuStock = (json['skuStock'] as num?)?.toInt() ..storeId = json['storeId'] ..tableId = json['tableId']; Map _$SkuItemListToJson(SkuItemList instance) => { 'buyNum': instance.buyNum, 'createTime': instance.createTime, 'groupId': instance.groupId, 'id': instance.id, 'platterList': instance.platterList?.map((e) => e.toJson()).toList(), 'setMealDataList': instance.setMealDataList?.map((e) => e.toJson()).toList(), 'productId': instance.productId, 'productName': instance.productName, 'selected': instance.selected, 'skuImg': instance.skuImg, 'skuName': instance.skuName, 'skuPrice': instance.skuPrice, 'skuStock': instance.skuStock, 'storeId': instance.storeId, 'tableId': instance.tableId, }; PlatterList _$PlatterListFromJson(Map json) => PlatterList() ..deleted = json['deleted'] as bool? ..id = (json['id'] as num?)?.toInt() ..productId = (json['productId'] as num?)?.toInt() ..required = json['required'] as bool? ..skuId = (json['skuId'] as num?)?.toInt(); Map _$PlatterListToJson(PlatterList instance) => { 'deleted': instance.deleted, 'id': instance.id, 'productId': instance.productId, 'required': instance.required, 'skuId': instance.skuId, };