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.
76 lines
3.2 KiB
76 lines
3.2 KiB
// GENERATED CODE - DO NOT MODIFY BY HAND |
|
|
|
part of 'coupon.dart'; |
|
|
|
// ************************************************************************** |
|
// JsonSerializableGenerator |
|
// ************************************************************************** |
|
|
|
Coupon _$CouponFromJson(Map<String, dynamic> json) => Coupon() |
|
..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? |
|
..bizType = (json['bizType'] as num?)?.toInt() |
|
..fullAmount = json['fullAmount'] as String? |
|
..discountAmount = json['discountAmount'] as String? |
|
..discountPercent = (json['discountPercent'] as num?)?.toInt() |
|
..bizId = json['bizId'] as String? |
|
..publishStartTime = json['publishStartTime'] as String? |
|
..publishEndTime = json['publishEndTime'] as String? |
|
..useStartTime = json['useStartTime'] as String? |
|
..useEndTime = json['useEndTime'] as String? |
|
..promotionId = json['promotionId'] as String? |
|
..centreDisplay = json['centreDisplay'] as bool? |
|
..allProduct = json['allProduct'] as bool? |
|
..tenantCode = json['tenantCode'] as String? |
|
..remark = json['remark'] as String? |
|
..tenantName = json['tenantName'] as String? |
|
..isDelete = (json['isDelete'] as num?)?.toInt() |
|
..couponName = json['couponName'] as String? |
|
..limitAmount = json['limitAmount'] as String? |
|
..couponImg = json['couponImg'] as String? |
|
..couponDescription = json['couponDescription'] as String? |
|
..memberCouponId = json['memberCouponId'] as String? |
|
..receiveTime = json['receiveTime'] as String? |
|
..storeId = json['storeId'] as String? |
|
..useTime = json['useTime'] |
|
..status = (json['status'] as num?)?.toInt() |
|
..storeList = (json['storeList'] as List<dynamic>?) |
|
?.map((e) => Store.fromJson(e as Map<String, dynamic>)) |
|
.toList(); |
|
|
|
Map<String, dynamic> _$CouponToJson(Coupon instance) => <String, dynamic>{ |
|
'id': instance.id, |
|
'createTime': instance.createTime, |
|
'createUser': instance.createUser, |
|
'updateTime': instance.updateTime, |
|
'updateUser': instance.updateUser, |
|
'bizType': instance.bizType, |
|
'fullAmount': instance.fullAmount, |
|
'discountAmount': instance.discountAmount, |
|
'discountPercent': instance.discountPercent, |
|
'bizId': instance.bizId, |
|
'publishStartTime': instance.publishStartTime, |
|
'publishEndTime': instance.publishEndTime, |
|
'useStartTime': instance.useStartTime, |
|
'useEndTime': instance.useEndTime, |
|
'promotionId': instance.promotionId, |
|
'centreDisplay': instance.centreDisplay, |
|
'allProduct': instance.allProduct, |
|
'tenantCode': instance.tenantCode, |
|
'remark': instance.remark, |
|
'tenantName': instance.tenantName, |
|
'isDelete': instance.isDelete, |
|
'couponName': instance.couponName, |
|
'limitAmount': instance.limitAmount, |
|
'couponImg': instance.couponImg, |
|
'couponDescription': instance.couponDescription, |
|
'memberCouponId': instance.memberCouponId, |
|
'receiveTime': instance.receiveTime, |
|
'storeId': instance.storeId, |
|
'useTime': instance.useTime, |
|
'status': instance.status, |
|
'storeList': instance.storeList?.map((e) => e.toJson()).toList(), |
|
};
|
|
|