|
|
|
class Coupon {
|
|
|
|
Coupon();
|
|
|
|
|
|
|
|
String id;
|
|
|
|
String createTime;
|
|
|
|
String createUser;
|
|
|
|
String updateTime;
|
|
|
|
String updateUser;
|
|
|
|
int bizType;
|
|
|
|
String fullAmount;
|
|
|
|
String discountAmount;
|
|
|
|
int discountPercent;
|
|
|
|
String bizId;
|
|
|
|
String publishStartTime;
|
|
|
|
String publishEndTime;
|
|
|
|
String useStartTime;
|
|
|
|
String useEndTime;
|
|
|
|
String promotionId;
|
|
|
|
bool centreDisplay;
|
|
|
|
String tenantCode;
|
|
|
|
int isDelete;
|
|
|
|
String couponName;
|
|
|
|
String couponImg;
|
|
|
|
String couponDescription;
|
|
|
|
String memberCouponId;
|
|
|
|
String receiveTime;
|
|
|
|
dynamic useTime;
|
|
|
|
int status;
|
|
|
|
|
|
|
|
factory Coupon.fromJson(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 int
|
|
|
|
..fullAmount = json['fullAmount'] as String
|
|
|
|
..discountAmount = json['discountAmount'] as String
|
|
|
|
..discountPercent = json['discountPercent'] as int
|
|
|
|
..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
|
|
|
|
..tenantCode = json['tenantCode'] as String
|
|
|
|
..isDelete = json['isDelete'] as int
|
|
|
|
..couponName = json['couponName'] as String
|
|
|
|
..couponImg = json['couponImg'] as String
|
|
|
|
..couponDescription = json['couponDescription'] as String
|
|
|
|
..memberCouponId = json['memberCouponId'] as String
|
|
|
|
..receiveTime = json['receiveTime'] as String
|
|
|
|
..useTime = json['useTime']
|
|
|
|
..status = json['status'] as int;
|
|
|
|
|
|
|
|
Map<String, dynamic> toJson() => <String, dynamic>{
|
|
|
|
'id': this.id,
|
|
|
|
'createTime': this.createTime,
|
|
|
|
'createUser': this.createUser,
|
|
|
|
'updateTime': this.updateTime,
|
|
|
|
'updateUser': this.updateUser,
|
|
|
|
'bizType': this.bizType,
|
|
|
|
'fullAmount': this.fullAmount,
|
|
|
|
'discountAmount': this.discountAmount,
|
|
|
|
'discountPercent': this.discountPercent,
|
|
|
|
'bizId': this.bizId,
|
|
|
|
'publishStartTime': this.publishStartTime,
|
|
|
|
'publishEndTime': this.publishEndTime,
|
|
|
|
'useStartTime': this.useStartTime,
|
|
|
|
'useEndTime': this.useEndTime,
|
|
|
|
'promotionId': this.promotionId,
|
|
|
|
'centreDisplay': this.centreDisplay,
|
|
|
|
'tenantCode': this.tenantCode,
|
|
|
|
'isDelete': this.isDelete,
|
|
|
|
'couponName': this.couponName,
|
|
|
|
'couponImg': this.couponImg,
|
|
|
|
'couponDescription': this.couponDescription,
|
|
|
|
'memberCouponId': this.memberCouponId,
|
|
|
|
'receiveTime': this.receiveTime,
|
|
|
|
'useTime': this.useTime,
|
|
|
|
'status': this.status,
|
|
|
|
};
|
|
|
|
}
|