/// id : "1460450874352317701"
/// createTime : "2021-11-12 11:42:08"
/// createUser : "123"
/// updateTime : "2021-11-19 13:59:36"
/// updateUser : "1"
/// categoryId : "1460904379451179008"
/// name : "青铜"
/// level : 0
/// icon : "https://pos.upload.gznl.top/MDAwMA==/2021/11/dd1bd6f1-6079-46ab-8d0f-6a946048db9d.webp"
/// score : 1
/// actived : true
/// sort : 0
/// isDelete : 0
/// lessScore : "1"
/// rewardList : [{"id":"1464064141143572480","createTime":"2021-11-26 10:51:07","createUser":"1","updateTime":"2021-11-26 10:51:07","updateUser":"1","categoryId":"1460904379451179008","achievementId":"1460450874352317701","rewardType":2,"refId":"10","isDelete":0,"achievementCategoryName":null,"achievementName":null,"couponName":null},{"id":"1464064181471805440","createTime":"2021-11-26 10:51:17","createUser":"1","updateTime":"2021-11-26 10:51:17","updateUser":"1","categoryId":"1460904379451179008","achievementId":"1460450874352317701","rewardType":2,"refId":"20","isDelete":0,"achievementCategoryName":null,"achievementName":null,"couponName":null},{"id":"1464136057103581184","createTime":"2021-11-26 15:36:53","createUser":"1","updateTime":"2021-11-26 15:36:53","updateUser":"1","categoryId":"1460904379451179008","achievementId":"1460450874352317701","rewardType":1,"refId":"888","isDelete":0,"achievementCategoryName":null,"achievementName":null,"couponName":null}]
/// max : false
/// get : false

class AchievementDetailList {
  AchievementDetailList({
      String id, 
      String createTime, 
      String createUser, 
      String updateTime, 
      String updateUser, 
      String categoryId, 
      String name, 
      int level, 
      String icon, 
      int score, 
      bool actived, 
      int sort, 
      int isDelete, 
      String lessScore, 
      List<RewardList> rewardList, 
      bool max, 
      bool get,}){
    _id = id;
    _createTime = createTime;
    _createUser = createUser;
    _updateTime = updateTime;
    _updateUser = updateUser;
    _categoryId = categoryId;
    _name = name;
    _level = level;
    _icon = icon;
    _score = score;
    _actived = actived;
    _sort = sort;
    _isDelete = isDelete;
    _lessScore = lessScore;
    _rewardList = rewardList;
    _max = max;
    _get = get;
}

  AchievementDetailList.fromJson(dynamic json) {
    _id = json['id'];
    _createTime = json['createTime'];
    _createUser = json['createUser'];
    _updateTime = json['updateTime'];
    _updateUser = json['updateUser'];
    _categoryId = json['categoryId'];
    _name = json['name'];
    _level = json['level'];
    _icon = json['icon'];
    _score = json['score'];
    _actived = json['actived'];
    _sort = json['sort'];
    _isDelete = json['isDelete'];
    _lessScore = json['lessScore'];
    if (json['rewardList'] != null) {
      _rewardList = [];
      json['rewardList'].forEach((v) {
        _rewardList.add(RewardList.fromJson(v));
      });
    }
    _max = json['max'];
    _get = json['get'];
  }
  String _id;
  String _createTime;
  String _createUser;
  String _updateTime;
  String _updateUser;
  String _categoryId;
  String _name;
  int _level;
  String _icon;
  int _score;
  bool _actived;
  int _sort;
  int _isDelete;
  String _lessScore;
  List<RewardList> _rewardList;
  bool _max;
  bool _get;

  String get id => _id;
  String get createTime => _createTime;
  String get createUser => _createUser;
  String get updateTime => _updateTime;
  String get updateUser => _updateUser;
  String get categoryId => _categoryId;
  String get name => _name;
  int get level => _level;
  String get icon => _icon;
  int get score => _score;
  bool get actived => _actived;
  int get sort => _sort;
  int get isDelete => _isDelete;
  String get lessScore => _lessScore;
  List<RewardList> get rewardList => _rewardList;
  bool get max => _max;
  bool get get => _get;

  Map<String, dynamic> toJson() {
    final map = <String, dynamic>{};
    map['id'] = _id;
    map['createTime'] = _createTime;
    map['createUser'] = _createUser;
    map['updateTime'] = _updateTime;
    map['updateUser'] = _updateUser;
    map['categoryId'] = _categoryId;
    map['name'] = _name;
    map['level'] = _level;
    map['icon'] = _icon;
    map['score'] = _score;
    map['actived'] = _actived;
    map['sort'] = _sort;
    map['isDelete'] = _isDelete;
    map['lessScore'] = _lessScore;
    if (_rewardList != null) {
      map['rewardList'] = _rewardList.map((v) => v.toJson()).toList();
    }
    map['max'] = _max;
    map['get'] = _get;
    return map;
  }

}

/// id : "1464064141143572480"
/// createTime : "2021-11-26 10:51:07"
/// createUser : "1"
/// updateTime : "2021-11-26 10:51:07"
/// updateUser : "1"
/// categoryId : "1460904379451179008"
/// achievementId : "1460450874352317701"
/// rewardType : 2
/// refId : "10"
/// isDelete : 0
/// achievementCategoryName : null
/// achievementName : null
/// couponName : null

class RewardList {
  RewardList({
      String id, 
      String createTime, 
      String createUser, 
      String updateTime, 
      String updateUser, 
      String categoryId, 
      String achievementId, 
      int rewardType, 
      String refId, 
      int isDelete, 
      dynamic achievementCategoryName, 
      dynamic achievementName, 
      dynamic couponName,}){
    _id = id;
    _createTime = createTime;
    _createUser = createUser;
    _updateTime = updateTime;
    _updateUser = updateUser;
    _categoryId = categoryId;
    _achievementId = achievementId;
    _rewardType = rewardType;
    _refId = refId;
    _isDelete = isDelete;
    _achievementCategoryName = achievementCategoryName;
    _achievementName = achievementName;
    _couponName = couponName;
}

  RewardList.fromJson(dynamic json) {
    _id = json['id'];
    _createTime = json['createTime'];
    _createUser = json['createUser'];
    _updateTime = json['updateTime'];
    _updateUser = json['updateUser'];
    _categoryId = json['categoryId'];
    _achievementId = json['achievementId'];
    _rewardType = json['rewardType'];
    _refId = json['refId'];
    _isDelete = json['isDelete'];
    _achievementCategoryName = json['achievementCategoryName'];
    _achievementName = json['achievementName'];
    _couponName = json['couponName'];
  }
  String _id;
  String _createTime;
  String _createUser;
  String _updateTime;
  String _updateUser;
  String _categoryId;
  String _achievementId;
  int _rewardType;
  String _refId;
  int _isDelete;
  dynamic _achievementCategoryName;
  dynamic _achievementName;
  dynamic _couponName;

  String get id => _id;
  String get createTime => _createTime;
  String get createUser => _createUser;
  String get updateTime => _updateTime;
  String get updateUser => _updateUser;
  String get categoryId => _categoryId;
  String get achievementId => _achievementId;
  int get rewardType => _rewardType;
  String get refId => _refId;
  int get isDelete => _isDelete;
  dynamic get achievementCategoryName => _achievementCategoryName;
  dynamic get achievementName => _achievementName;
  dynamic get couponName => _couponName;

  Map<String, dynamic> toJson() {
    final map = <String, dynamic>{};
    map['id'] = _id;
    map['createTime'] = _createTime;
    map['createUser'] = _createUser;
    map['updateTime'] = _updateTime;
    map['updateUser'] = _updateUser;
    map['categoryId'] = _categoryId;
    map['achievementId'] = _achievementId;
    map['rewardType'] = _rewardType;
    map['refId'] = _refId;
    map['isDelete'] = _isDelete;
    map['achievementCategoryName'] = _achievementCategoryName;
    map['achievementName'] = _achievementName;
    map['couponName'] = _couponName;
    return map;
  }

}