/// records : [{"id":0,"couponNo":"","couponType":0,"couponTypeName":"","propId":0,"propName":"","validDays":0,"actionType":0,"actionTypeName":"","receiverId":0,"receiverNickname":"","remark":"","createTime":""}]
/// total : 0
/// size : 0
/// current : 0

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

  SCPropCouponRecordListRes.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 : ""
/// validDays : 0
/// actionType : 0
/// actionTypeName : ""
/// receiverId : 0
/// receiverNickname : ""
/// remark : ""
/// createTime : ""

class Records {
  Records({
      num? id,
      String? couponNo,
      String? propIcon,
      num? couponType,
      String? couponTypeName,
      num? propId,
      String? propName,
      num? validDays,
      num? propDays,
      num? actionType,
      String? actionTypeName,
      num? receiverId,
      String? receiverAccount,
      String? receiverNickname,
      String? remark,
      int? createTime,
      int? expireTime,}){
    _id = id;
    _couponNo = couponNo;
    _propIcon = propIcon;
    _couponType = couponType;
    _couponTypeName = couponTypeName;
    _propId = propId;
    _propName = propName;
    _validDays = validDays;
    _propDays = propDays;
    _actionType = actionType;
    _actionTypeName = actionTypeName;
    _receiverId = receiverId;
    _receiverAccount = receiverAccount;
    _receiverNickname = receiverNickname;
    _remark = remark;
    _createTime = createTime;
    _expireTime = expireTime;
}

  Records.fromJson(dynamic json) {
    _id = json['id'];
    _couponNo = json['couponNo'];
    _propIcon = json['propIcon'];
    _couponType = json['couponType'];
    _couponTypeName = json['couponTypeName'];
    _propId = json['propId'];
    _propName = json['propName'];
    _propDays = json['propDays'];
    _actionType = json['actionType'];
    _actionTypeName = json['actionTypeName'];
    _receiverId = json['receiverId'];
    _receiverAccount = json['receiverAccount'];
    _receiverNickname = json['receiverNickname'];
    _remark = json['remark'];
    _createTime = json['createTime'];
    _expireTime = json['expireTime'];
  }
  num? _id;
  String? _couponNo;
  String? _propIcon;
  num? _couponType;
  String? _couponTypeName;
  num? _propId;
  String? _propName;
  num? _validDays;
  num? _propDays;
  num? _actionType;
  String? _actionTypeName;
  num? _receiverId;
  String? _receiverAccount;
  String? _receiverNickname;
  String? _remark;
  int? _createTime;
  int? _expireTime;

  num? get id => _id;
  String? get propIcon => _propIcon;
  num? get couponType => _couponType;
  String? get couponTypeName => _couponTypeName;
  num? get propId => _propId;
  String? get propName => _propName;
  num? get validDays => _validDays;
  num? get propDays => _propDays;
  num? get actionType => _actionType;
  String? get actionTypeName => _actionTypeName;
  num? get receiverId => _receiverId;
  String? get receiverAccount => _receiverAccount;
  String? get receiverNickname => _receiverNickname;
  String? get remark => _remark;
  int? get createTime => _createTime;
  int? get expireTime => _expireTime;

  Map<String, dynamic> toJson() {
    final map = <String, dynamic>{};
    map['id'] = _id;
    map['couponNo'] = _couponNo;
    map['propIcon'] = _propIcon;
    map['couponType'] = _couponType;
    map['couponTypeName'] = _couponTypeName;
    map['propId'] = _propId;
    map['propName'] = _propName;
    map['validDays'] = _validDays;
    map['propDays'] = _propDays;
    map['actionType'] = _actionType;
    map['actionTypeName'] = _actionTypeName;
    map['receiverId'] = _receiverId;
    map['receiverAccount'] = _receiverAccount;
    map['receiverNickname'] = _receiverNickname;
    map['remark'] = _remark;
    map['createTime'] = _createTime;
    map['expireTime'] = _expireTime;
    return map;
  }

}