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.
100 lines
4.0 KiB
100 lines
4.0 KiB
1 month ago
|
// GENERATED CODE - DO NOT MODIFY BY HAND
|
||
|
|
||
|
part of 'shopping_cart.dart';
|
||
|
|
||
|
// **************************************************************************
|
||
|
// JsonSerializableGenerator
|
||
|
// **************************************************************************
|
||
|
|
||
|
ShoppingCart _$ShoppingCartFromJson(Map<String, dynamic> json) => ShoppingCart()
|
||
|
..cartSum = (json['cartSum'] as num?)?.toInt()
|
||
|
..selectDiscount = (json['selectDiscount'] as num?)?.toInt()
|
||
|
..numberOfPeople = (json['numberOfPeople'] as num?)?.toInt()
|
||
|
..selected = (json['selected'] as num?)?.toInt()
|
||
|
..shoppingCartSkuItemList =
|
||
|
(json['shoppingCartSkuItemList'] as List<dynamic>?)
|
||
|
?.map((e) => SkuItemList.fromJson(e as Map<String, dynamic>))
|
||
|
.toList()
|
||
|
..storeId = (json['storeId'] as num?)?.toInt()
|
||
|
..storeName = json['storeName'] as String?
|
||
|
..tableId = json['tableId'] as String?
|
||
|
..promotionInfoList = (json['promotionInfoList'] as List<dynamic>?)
|
||
|
?.map((e) => PromotionInfo.fromJson(e as Map<String, dynamic>))
|
||
|
.toList()
|
||
|
..couponList = (json['couponList'] as List<dynamic>?)
|
||
|
?.map((e) => CouponList.fromJson(e as Map<String, dynamic>))
|
||
|
.toList();
|
||
|
|
||
|
Map<String, dynamic> _$ShoppingCartToJson(ShoppingCart instance) =>
|
||
|
<String, dynamic>{
|
||
|
'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<String, dynamic> json) => SkuItemList()
|
||
|
..buyNum = (json['buyNum'] as num?)?.toInt()
|
||
|
..createTime = json['createTime'] as String?
|
||
|
..groupId = (json['groupId'] as num?)?.toInt()
|
||
|
..id = (json['id'] as num?)?.toInt()
|
||
|
..platterList = (json['platterList'] as List<dynamic>?)
|
||
|
?.map((e) => PlatterList.fromJson(e as Map<String, dynamic>))
|
||
|
.toList()
|
||
|
..setMealDataList = (json['setMealDataList'] as List<dynamic>?)
|
||
|
?.map((e) => SetMealData.fromJson(e as Map<String, dynamic>))
|
||
|
.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'] as num?)?.toInt()
|
||
|
..tableId = (json['tableId'] as num?)?.toInt();
|
||
|
|
||
|
Map<String, dynamic> _$SkuItemListToJson(SkuItemList instance) =>
|
||
|
<String, dynamic>{
|
||
|
'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<String, dynamic> 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<String, dynamic> _$PlatterListToJson(PlatterList instance) =>
|
||
|
<String, dynamic>{
|
||
|
'deleted': instance.deleted,
|
||
|
'id': instance.id,
|
||
|
'productId': instance.productId,
|
||
|
'required': instance.required,
|
||
|
'skuId': instance.skuId,
|
||
|
};
|