/// roomId : 0
/// date : ""
/// level : 0
/// levelName : ""
/// currentEnergy : 0
/// maxEnergy : 0
/// energyPercent : 0.0
/// status : ""
/// statusDesc : ""
/// totalContributors : 0
/// launchTime : ""
/// claimExpireTime : ""
/// claimCount : 0
/// canClaim : false
/// hasClaimed : false
/// myContribution : 0
/// myContributionRate : 0.0

class SCRoomRocketStatusRes {
  SCRoomRocketStatusRes({
    String? roomId,
    String? date,
    num? level,
    String? levelName,
    int? currentEnergy,
    int? maxEnergy,
    num? energyPercent,
    String? status,
    String? statusDesc,
    num? totalContributors,
    String? launchTime,
    String? claimExpireTime,
    num? claimCount,
    bool? canClaim,
    bool? hasClaimed,
    num? myContribution,
    num? myContributionRate,
  }) {
    _roomId = roomId;
    _date = date;
    _level = level;
    _levelName = levelName;
    _currentEnergy = currentEnergy;
    _maxEnergy = maxEnergy;
    _energyPercent = energyPercent;
    _status = status;
    _statusDesc = statusDesc;
    _totalContributors = totalContributors;
    _claimExpireTime = claimExpireTime;
    _claimCount = claimCount;
    _canClaim = canClaim;
    _hasClaimed = hasClaimed;
    _myContribution = myContribution;
    _myContributionRate = myContributionRate;
  }

  SCRoomRocketStatusRes.fromJson(dynamic json) {
    _roomId = json['roomId'];
    _date = json['date'];
    _level = json['level'];
    _levelName = json['levelName'];
    _currentEnergy = json['currentEnergy'];
    _maxEnergy = json['maxEnergy'];
    _energyPercent = json['energyPercent'];
    _status = json['status'];
    _statusDesc = json['statusDesc'];
    _totalContributors = json['totalContributors'];
    _claimExpireTime = json['claimExpireTime'];
    _claimCount = json['claimCount'];
    _canClaim = json['canClaim'];
    _hasClaimed = json['hasClaimed'];
    _myContribution = json['myContribution'];
    _myContributionRate = json['myContributionRate'];
  }

  String? _roomId;
  String? _date;
  num? _level;
  String? _levelName;
  int? _currentEnergy;
  int? _maxEnergy;
  num? _energyPercent;
  String? _status;
  String? _statusDesc;
  num? _totalContributors;
  String? _claimExpireTime;
  num? _claimCount;
  bool? _canClaim;
  bool? _hasClaimed;
  num? _myContribution;
  num? _myContributionRate;

  String? get roomId => _roomId;

  String? get date => _date;

  num? get level => _level;

  String? get levelName => _levelName;

  int? get currentEnergy => _currentEnergy;

  int? get maxEnergy => _maxEnergy;

  num? get energyPercent => _energyPercent;

  String? get status => _status;

  String? get statusDesc => _statusDesc;

  num? get totalContributors => _totalContributors;

  String? get claimExpireTime => _claimExpireTime;

  num? get claimCount => _claimCount;

  bool? get canClaim => _canClaim;

  bool? get hasClaimed => _hasClaimed;

  num? get myContribution => _myContribution;

  num? get myContributionRate => _myContributionRate;

  Map<String, dynamic> toJson() {
    final map = <String, dynamic>{};
    map['roomId'] = _roomId;
    map['date'] = _date;
    map['level'] = _level;
    map['levelName'] = _levelName;
    map['currentEnergy'] = _currentEnergy;
    map['maxEnergy'] = _maxEnergy;
    map['energyPercent'] = _energyPercent;
    map['status'] = _status;
    map['statusDesc'] = _statusDesc;
    map['totalContributors'] = _totalContributors;
    map['claimExpireTime'] = _claimExpireTime;
    map['claimCount'] = _claimCount;
    map['canClaim'] = _canClaim;
    map['hasClaimed'] = _hasClaimed;
    map['myContribution'] = _myContribution;
    map['myContributionRate'] = _myContributionRate;
    return map;
  }
}
