/// id : "1493050078934335488"
/// createTime : "2022-02-14 10:30:53"
/// createUser : "1307141152536788992"
/// updateTime : "2022-02-14 10:30:53"
/// updateUser : "1307141152536788992"
/// mid : "1486626867212451840"
/// couponId : "1435510333782360064"
/// receiveTime : "2022-02-14 10:30:53"
/// useTime : null
/// useTimeStart : "2022-02-14 10:30:53"
/// useTimeEnd : "2022-02-15 10:30:53"
/// status : 1
/// isDeleted : false
/// tenantCode : "1166"
/// couponCode : ""

class CouponDetail {
  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, 
      bool isDeleted, 
      String tenantCode, 
      String couponCode,}){
    _id = id;
    _createTime = createTime;
    _createUser = createUser;
    _updateTime = updateTime;
    _updateUser = updateUser;
    _mid = mid;
    _couponId = couponId;
    _receiveTime = receiveTime;
    _useTime = useTime;
    _useTimeStart = useTimeStart;
    _useTimeEnd = useTimeEnd;
    _status = status;
    _isDeleted = isDeleted;
    _tenantCode = tenantCode;
    _couponCode = couponCode;
}

  CouponDetail.fromJson(dynamic json) {
    _id = json['id'];
    _createTime = json['createTime'];
    _createUser = json['createUser'];
    _updateTime = json['updateTime'];
    _updateUser = json['updateUser'];
    _mid = json['mid'];
    _couponId = json['couponId'];
    _receiveTime = json['receiveTime'];
    _useTime = json['useTime'];
    _useTimeStart = json['useTimeStart'];
    _useTimeEnd = json['useTimeEnd'];
    _status = json['status'];
    _isDeleted = json['isDeleted'];
    _tenantCode = json['tenantCode'];
    _couponCode = json['couponCode'];
  }
  String _id;
  String _createTime;
  String _createUser;
  String _updateTime;
  String _updateUser;
  String _mid;
  String _couponId;
  String _receiveTime;
  dynamic _useTime;
  String _useTimeStart;
  String _useTimeEnd;
  int _status;
  bool _isDeleted;
  String _tenantCode;
  String _couponCode;

  String get id => _id;
  String get createTime => _createTime;
  String get createUser => _createUser;
  String get updateTime => _updateTime;
  String get updateUser => _updateUser;
  String get mid => _mid;
  String get couponId => _couponId;
  String get receiveTime => _receiveTime;
  dynamic get useTime => _useTime;
  String get useTimeStart => _useTimeStart;
  String get useTimeEnd => _useTimeEnd;
  int get status => _status;
  bool get isDeleted => _isDeleted;
  String get tenantCode => _tenantCode;
  String get couponCode => _couponCode;

  Map<String, dynamic> toJson() {
    final map = <String, dynamic>{};
    map['id'] = _id;
    map['createTime'] = _createTime;
    map['createUser'] = _createUser;
    map['updateTime'] = _updateTime;
    map['updateUser'] = _updateUser;
    map['mid'] = _mid;
    map['couponId'] = _couponId;
    map['receiveTime'] = _receiveTime;
    map['useTime'] = _useTime;
    map['useTimeStart'] = _useTimeStart;
    map['useTimeEnd'] = _useTimeEnd;
    map['status'] = _status;
    map['isDeleted'] = _isDeleted;
    map['tenantCode'] = _tenantCode;
    map['couponCode'] = _couponCode;
    return map;
  }

}