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