/// packetId : ""
/// roomId : 0
/// userId : 0
/// userName : ""
/// userAvatar : ""
/// packetType : 0
/// packetTypeDesc : ""
/// sourceType : 0
/// totalAmount : 0
/// totalCount : 0
/// remainAmount : 0
/// remainCount : 0
/// expireMinutes : 0
/// expireTime : ""
/// countdown : 0
/// status : 0
/// statusDesc : ""
/// grabbed : false
/// createTime : ""

class SCRoomRedPacketListRes {
  SCRoomRedPacketListRes({
    String? packetId,
    String? roomId,
    num? userId,
    String? userName,
    String? userAvatar,
    num? packetType,
    String? packetTypeDesc,
    num? sourceType,
    num? totalAmount,
    num? totalCount,
    num? remainAmount,
    num? remainCount,
    num? expireMinutes,
    String? expireTime,
    int? countdown,
    num? status,
    String? statusDesc,
    bool? grabbed,
    String? createTime,
  }) {
    _packetId = packetId;
    _roomId = roomId;
    _userId = userId;
    _userName = userName;
    _userAvatar = userAvatar;
    _packetType = packetType;
    _packetTypeDesc = packetTypeDesc;
    _sourceType = sourceType;
    _totalAmount = totalAmount;
    _totalCount = totalCount;
    _remainAmount = remainAmount;
    _remainCount = remainCount;
    _expireMinutes = expireMinutes;
    _expireTime = expireTime;
    _countdown = countdown;
    _status = status;
    _statusDesc = statusDesc;
    _grabbed = grabbed;
    _createTime = createTime;
  }

  SCRoomRedPacketListRes.fromJson(dynamic json) {
    _packetId = json['packetId'];
    _roomId = json['roomId'];
    _userId = json['userId'];
    _userName = json['userName'];
    _userAvatar = json['userAvatar'];
    _packetType = json['packetType'];
    _packetTypeDesc = json['packetTypeDesc'];
    _sourceType = json['sourceType'];
    _totalAmount = json['totalAmount'];
    _totalCount = json['totalCount'];
    _remainAmount = json['remainAmount'];
    _remainCount = json['remainCount'];
    _expireMinutes = json['expireMinutes'];
    _expireTime = json['expireTime'];
    _countdown = json['countdown'];
    _status = json['status'];
    _statusDesc = json['statusDesc'];
    _grabbed = json['grabbed'];
    _createTime = json['createTime'];
  }

  String? _packetId;
  String? _roomId;
  num? _userId;
  String? _userName;
  String? _userAvatar;
  num? _packetType;
  String? _packetTypeDesc;
  num? _sourceType;
  num? _totalAmount;
  num? _totalCount;
  num? _remainAmount;
  num? _remainCount;
  num? _expireMinutes;
  String? _expireTime;
  int? _countdown;
  num? _status;
  String? _statusDesc;
  bool? _grabbed;
  String? _createTime;

  String? get packetId => _packetId;

  String? get roomId => _roomId;

  num? get userId => _userId;

  String? get userName => _userName;

  String? get userAvatar => _userAvatar;

  num? get packetType => _packetType;

  String? get packetTypeDesc => _packetTypeDesc;

  num? get sourceType => _sourceType;

  num? get totalAmount => _totalAmount;

  num? get totalCount => _totalCount;

  num? get remainAmount => _remainAmount;

  num? get remainCount => _remainCount;

  num? get expireMinutes => _expireMinutes;

  String? get expireTime => _expireTime;

  int? get countdown => _countdown;

  num? get status => _status;

  String? get statusDesc => _statusDesc;

  bool? get grabbed => _grabbed;

  String? get createTime => _createTime;

  Map<String, dynamic> toJson() {
    final map = <String, dynamic>{};
    map['packetId'] = _packetId;
    map['roomId'] = _roomId;
    map['userId'] = _userId;
    map['userName'] = _userName;
    map['userAvatar'] = _userAvatar;
    map['packetType'] = _packetType;
    map['packetTypeDesc'] = _packetTypeDesc;
    map['sourceType'] = _sourceType;
    map['totalAmount'] = _totalAmount;
    map['totalCount'] = _totalCount;
    map['remainAmount'] = _remainAmount;
    map['remainCount'] = _remainCount;
    map['expireMinutes'] = _expireMinutes;
    map['expireTime'] = _expireTime;
    map['countdown'] = _countdown;
    map['status'] = _status;
    map['statusDesc'] = _statusDesc;
    map['grabbed'] = _grabbed;
    map['createTime'] = _createTime;
    return map;
  }
}
