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.

91 lines
3.2 KiB

4 years ago
class CouponVo {
String bizId;
num bizType;
bool centreDisplay;
String couponDescription;
String couponImg;
String couponName;
String createTime;
4 years ago
String createUser;
String discountAmount;
4 years ago
num discountPercent;
4 years ago
String fullAmount;
String id;
4 years ago
num isDelete;
num memberCouponId;
4 years ago
String promotionId;
4 years ago
String publishEndTime;
String publishStartTime;
String receiveTime;
bool received;
num status;
String tenantCode;
String updateTime;
4 years ago
String updateUser;
4 years ago
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});
4 years ago
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'] as num,
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,
);
4 years ago
4 years ago
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,
};
4 years ago
}