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.
74 lines
1.8 KiB
74 lines
1.8 KiB
import 'package:json_annotation/json_annotation.dart'; |
|
|
|
/// bizId : "" |
|
/// bizType : 0 |
|
/// centreDisplay : true |
|
/// createTime : "" |
|
/// createUser : 0 |
|
/// discountAmount : 0 |
|
/// discountPercent : 0 |
|
/// fullAmount : 0 |
|
/// id : 0 |
|
/// isDelete : 0 |
|
/// memberCouponId : 0 |
|
/// promotionId : 0 |
|
/// publishEndTime : "" |
|
/// publishStartTime : "" |
|
/// receiveTime : "" |
|
/// received : true |
|
/// tenantCode : "" |
|
/// updateTime : "" |
|
/// updateUser : 0 |
|
/// useEndTime : "" |
|
/// useStartTime : "" |
|
/// useTime : "" |
|
|
|
part 'coupon.g.dart'; |
|
|
|
///{"id":"1409793980522037248","createTime":"2021-06-29 16:40:52", |
|
///"createUser":"1","updateTime":"2021-06-29 16:40:52","updateUser":"1", |
|
///"bizType":5,"fullAmount":"0.00","discountAmount":"0.00","discountPercent":100, |
|
///"bizId":"1409793980488482816","publishStartTime":"2021-06-29 16:39:14", |
|
///"publishEndTime":"2021-06-29 16:39:14","useStartTime":"2021-06-29 16:39:14", |
|
///"useEndTime":"2021-06-29 16:39:14","promotionId":"0","centreDisplay":false, |
|
///"tenantCode":"admin","isDelete":0,"couponName":null, |
|
///"memberCouponId":"1409806872449384448","receiveTime":"2021-06-29 17:32:06", |
|
///"useTime":null,"status":1} |
|
@JsonSerializable() |
|
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) => |
|
_$CouponFromJson(json); |
|
Map<String, dynamic> toJson() => _$CouponToJson(this); |
|
|
|
} |