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.
 
 
 
 
 
 

47 lines
2.0 KiB

import 'package:json_annotation/json_annotation.dart';
part 'coupon_vo.g.dart';
@JsonSerializable()
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;
num 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});
//{"id":"1407301814381969408","createTime":"2021-06-22 19:37:54","createUser":"1336877238389309440",
// "updateTime":"2021-06-22 19:37:54","updateUser":"1336877238389309440","bizType":3,"fullAmo
//unt":"0.00","discountAmount":"0.00","discountPercent":100,"bizId":"","publishStartTime":"2021-06-08 12:00:00",
// "publishEndTime":"2021-07-30 12:00:00","useStartTime":"2021-06-09 12:00:00","useEndTime":"2021-06-26 12:00:00",
// "promotionId":"1407301660300017664","centreDisplay":true,"tenantCode":"1174","isDelete":0,"couponName":"兑换券",
// "couponImg":"https://pos.upload.gznl.top/1174/2021/06/0e80c809-4ea5-449d-a8b3-2c7b7e6dc9a7.jpg",
// "couponDescription":"11","memberCouponId":null,"receiveTime":null,"useTime":null,"status":0}
factory CouponVo.fromJson(Map<String, dynamic> json) => _$CouponVoFromJson(json);
Map<String, dynamic> toJson() => _$CouponVoToJson(this);
}