/// records : [{"id":"0","couponNo":"","couponType":0,"couponTypeName":"","propId":0,"propName":"","propIcon":"","validDays":0,"status":0,"statusName":"","source":0,"sourceName":"","expireTime":"","useTime":"","createTime":""}]
/// total : 0
/// size : 0
/// current : 0

class SCPropCouponListRes {
  SCPropCouponListRes({
      List<Records>? records,
      num? total,
      num? size,
      num? current,}){
    _records = records;
    _total = total;
    _size = size;
    _current = current;
}

  SCPropCouponListRes.fromJson(dynamic json) {
    if (json['records'] != null) {
      _records = [];
      json['records'].forEach((v) {
        _records?.add(Records.fromJson(v));
      });
    }
    _total = json['total'];
    _size = json['size'];
    _current = json['current'];
  }
  List<Records>? _records;
  num? _total;
  num? _size;
  num? _current;

  List<Records>? get records => _records;
  num? get total => _total;
  num? get size => _size;
  num? get current => _current;

  Map<String, dynamic> toJson() {
    final map = <String, dynamic>{};
    if (_records != null) {
      map['records'] = _records?.map((v) => v.toJson()).toList();
    }
    map['total'] = _total;
    map['size'] = _size;
    map['current'] = _current;
    return map;
  }

}

/// id : "0"
/// couponNo : ""
/// couponType : 0
/// couponTypeName : ""
/// propId : 0
/// propName : ""
/// propIcon : ""
/// validDays : 0
/// status : 0
/// statusName : ""
/// source : 0
/// sourceName : ""
/// expireTime : ""
/// useTime : ""
/// createTime : ""

class Records {
  Records({
      num? id,
      String? couponNo,
      num? couponType,
      String? couponTypeName,
      num? propId,
      String? propName,
      String? propIcon,
      num? validDays,
      num? propDays,
      num? status,
      String? statusName,
      num? source,
      String? sourceName,
      int? expireTime,
    int? useTime,
    int? createTime,}){
    _id = id;
    _couponNo = couponNo;
    _couponType = couponType;
    _couponTypeName = couponTypeName;
    _propId = propId;
    _propName = propName;
    _propIcon = propIcon;
    _validDays = validDays;
    _propDays = propDays;
    _status = status;
    _statusName = statusName;
    _source = source;
    _sourceName = sourceName;
    _expireTime = expireTime;
    _useTime = useTime;
    _createTime = createTime;
}

  Records.fromJson(dynamic json) {
    _id = json['id'];
    _couponNo = json['couponNo'];
    _couponType = json['couponType'];
    _couponTypeName = json['couponTypeName'];
    _propId = json['propId'];
    _propName = json['propName'];
    _propIcon = json['propIcon'];
    _validDays = json['validDays'];
    _propDays = json['propDays'];
    _status = json['status'];
    _statusName = json['statusName'];
    _source = json['source'];
    _sourceName = json['sourceName'];
    _expireTime = json['expireTime'];
    _useTime = json['useTime'];
    _createTime = json['createTime'];
  }
  num? _id;
  String? _couponNo;
  num? _couponType;
  String? _couponTypeName;
  num? _propId;
  String? _propName;
  String? _propIcon;
  num? _validDays;
  num? _propDays;
  num? _status;
  String? _statusName;
  num? _source;
  String? _sourceName;
  int? _expireTime;
  int? _useTime;
  int? _createTime;

  num? get id => _id;
  String? get couponNo => _couponNo;
  num? get couponType => _couponType;
  String? get couponTypeName => _couponTypeName;
  num? get propId => _propId;
  String? get propName => _propName;
  String? get propIcon => _propIcon;
  num? get validDays => _validDays;
  num? get propDays => _propDays;
  num? get status => _status;
  String? get statusName => _statusName;
  num? get source => _source;
  String? get sourceName => _sourceName;
  int? get expireTime => _expireTime;
  int? get useTime => _useTime;
  int? get createTime => _createTime;

  Map<String, dynamic> toJson() {
    final map = <String, dynamic>{};
    map['id'] = _id;
    map['couponNo'] = _couponNo;
    map['couponType'] = _couponType;
    map['couponTypeName'] = _couponTypeName;
    map['propId'] = _propId;
    map['propName'] = _propName;
    map['propIcon'] = _propIcon;
    map['validDays'] = _validDays;
    map['propDays'] = _propDays;
    map['status'] = _status;
    map['statusName'] = _statusName;
    map['source'] = _source;
    map['sourceName'] = _sourceName;
    map['expireTime'] = _expireTime;
    map['useTime'] = _useTime;
    map['createTime'] = _createTime;
    return map;
  }

}