import 'package:json_annotation/json_annotation.dart'; part 'coupon_detail.g.dart'; @JsonSerializable(explicitToJson: true) class CouponDetail { String? id = ''; String? createTime = ''; String? createUser = ''; String? updateTime = ''; String? updateUser = ''; String? mid = ''; String? couponId = ''; String? receiveTime = ''; dynamic useTime; String? useTimeStart = ''; String? useTimeEnd = ''; int? status = 0; bool? isDeleted = false; String? tenantCode = ''; String? couponCode = ''; CouponDetail(); factory CouponDetail.fromJson(Map json) => _$CouponDetailFromJson(json); Map toJson() => _$CouponDetailToJson(this); }