/// enabled : true
/// id : 3
/// level : 3
/// levelName : "三级火箭"
/// maxEnergy : 1000000
/// normalRewardConfig : []
/// rewardConfig : [{"amount":1969014438069481474,"content":"1969014438069481474","cover":"https://tkm-yumi.oss-ap-southeast-1.aliyuncs.com/svga_cover/manager-5058b89a-8654-4895-866e-fe4295e88408.png","createTime":1758286290000,"detailType":"AVATAR_FRAME","groupId":1966024426660499457,"id":1969021529953873921,"name":"yumi-KingTOP1头饰","quantity":7,"remark":"","sort":1,"sourceUrl":"https://tkm-yumi.oss-ap-southeast-1.aliyuncs.com/svgasource/manager-975e24c5-e87a-4236-9256-799c127a06bc.svga","type":"PROPS","updateTime":1758286290000},{"amount":1969014872674873345,"badgeName":"yumi-King'Medal","content":"1969014872674873345","cover":"https://tkm-yumi.oss-ap-southeast-1.aliyuncs.com/other/manager-fc5ad0a4-5e4a-498b-8494-2aee2efe5b99.png","createTime":1758286290000,"detailType":"BADGE","groupId":1966024426660499457,"id":1969021529953873922,"quantity":7,"remark":"","sort":2,"sourceUrl":"https://tkm-yumi.oss-ap-southeast-1.aliyuncs.com/other/manager-176fcf7e-787b-4bf6-bdb4-238d8388a5e2.svga","type":"BADGE","updateTime":1758286290000},{"amount":30000,"content":"30000","createTime":1758286290000,"detailType":"GOLD","groupId":1966024426660499457,"id":1969021529953873923,"quantity":0,"remark":"","sort":3,"type":"GOLD","updateTime":1758286290000},{"amount":1962463978629165057,"content":"1962463978629165057","cover":"https://tkm-yumi.oss-ap-southeast-1.aliyuncs.com/svga_cover/manager-6633f4cb-58b8-4b7d-8075-7f0a6f29fae0.png","createTime":1758286290000,"detailType":"RIDE","groupId":1966024426660499457,"id":1969021529953873924,"name":"后续活动座驾","quantity":7,"remark":"","sort":4,"sourceUrl":"https://tkm-yumi.oss-ap-southeast-1.aliyuncs.com/svgasource/manager-536ac482-8e9d-4a21-acff-531d51ff5b66.mp4","type":"PROPS","updateTime":1758286290000}]
/// status : 1

class SCRoomRocketConfigRes {
  SCRoomRocketConfigRes({
      bool? enabled,
      String? id,
      num? level,
      String? levelName,
      int? maxEnergy,
      List<RewardConfig>? rewardConfig,
      num? status,}){
    _enabled = enabled;
    _id = id;
    _level = level;
    _levelName = levelName;
    _maxEnergy = maxEnergy;
    _rewardConfig = rewardConfig;
    _status = status;
}

  SCRoomRocketConfigRes.fromJson(dynamic json) {
    _enabled = json['enabled'];
    _id = json['id'];
    _level = json['level'];
    _levelName = json['levelName'];
    _maxEnergy = json['maxEnergy'];
    if (json['rewardConfig'] != null) {
      _rewardConfig = [];
      json['rewardConfig'].forEach((v) {
        _rewardConfig?.add(RewardConfig.fromJson(v));
      });
    }
    _status = json['status'];
  }
  bool? _enabled;
  String? _id;
  num? _level;
  String? _levelName;
  int? _maxEnergy;
  List<RewardConfig>? _rewardConfig;
  num? _status;

  bool? get enabled => _enabled;
  String? get id => _id;
  num? get level => _level;
  String? get levelName => _levelName;
  int? get maxEnergy => _maxEnergy;
  List<RewardConfig>? get rewardConfig => _rewardConfig;
  num? get status => _status;

  Map<String, dynamic> toJson() {
    final map = <String, dynamic>{};
    map['enabled'] = _enabled;
    map['id'] = _id;
    map['level'] = _level;
    map['levelName'] = _levelName;
    map['maxEnergy'] = _maxEnergy;
    if (_rewardConfig != null) {
      map['rewardConfig'] = _rewardConfig?.map((v) => v.toJson()).toList();
    }
    map['status'] = _status;
    return map;
  }

}

/// amount : 1969014438069481474
/// content : "1969014438069481474"
/// cover : "https://tkm-yumi.oss-ap-southeast-1.aliyuncs.com/svga_cover/manager-5058b89a-8654-4895-866e-fe4295e88408.png"
/// createTime : 1758286290000
/// detailType : "AVATAR_FRAME"
/// groupId : 1966024426660499457
/// id : 1969021529953873921
/// name : "Yumi-KingTOP1头饰"
/// quantity : 7
/// remark : ""
/// sort : 1
/// sourceUrl : "https://tkm-yumi.oss-ap-southeast-1.aliyuncs.com/svgasource/manager-975e24c5-e87a-4236-9256-799c127a06bc.svga"
/// type : "PROPS"
/// updateTime : 1758286290000

class RewardConfig {
  RewardConfig({
      num? amount,
      String? content,
      String? cover,
      num? createTime,
      String? detailType,
      String? groupId,
      String? id,
      String? name,
      num? quantity,
      String? remark,
      num? sort,
      String? sourceUrl,
      String? type,
      num? updateTime,}){
    _amount = amount;
    _content = content;
    _cover = cover;
    _createTime = createTime;
    _detailType = detailType;
    _groupId = groupId;
    _id = id;
    _name = name;
    _quantity = quantity;
    _remark = remark;
    _sort = sort;
    _sourceUrl = sourceUrl;
    _type = type;
    _updateTime = updateTime;
}

  RewardConfig.fromJson(dynamic json) {
    _amount = json['amount'];
    _content = json['content'];
    _cover = json['cover'];
    _createTime = json['createTime'];
    _detailType = json['detailType'];
    _groupId = json['groupId'];
    _id = json['id'];
    _name = json['name'];
    _quantity = json['quantity'];
    _remark = json['remark'];
    _sort = json['sort'];
    _sourceUrl = json['sourceUrl'];
    _type = json['type'];
    _updateTime = json['updateTime'];
  }
  num? _amount;
  String? _content;
  String? _cover;
  num? _createTime;
  String? _detailType;
  String? _groupId;
  String? _id;
  String? _name;
  num? _quantity;
  String? _remark;
  num? _sort;
  String? _sourceUrl;
  String? _type;
  num? _updateTime;

  num? get amount => _amount;
  String? get content => _content;
  String? get cover => _cover;
  num? get createTime => _createTime;
  String? get detailType => _detailType;
  String? get groupId => _groupId;
  String? get id => _id;
  String? get name => _name;
  num? get quantity => _quantity;
  String? get remark => _remark;
  num? get sort => _sort;
  String? get sourceUrl => _sourceUrl;
  String? get type => _type;
  num? get updateTime => _updateTime;

  Map<String, dynamic> toJson() {
    final map = <String, dynamic>{};
    map['amount'] = _amount;
    map['content'] = _content;
    map['cover'] = _cover;
    map['createTime'] = _createTime;
    map['detailType'] = _detailType;
    map['groupId'] = _groupId;
    map['id'] = _id;
    map['name'] = _name;
    map['quantity'] = _quantity;
    map['remark'] = _remark;
    map['sort'] = _sort;
    map['sourceUrl'] = _sourceUrl;
    map['type'] = _type;
    map['updateTime'] = _updateTime;
    return map;
  }

}