import 'package:huixiang/generated/json/base/json_field.dart'; import 'package:huixiang/generated/json/achivement_detail_list.g.dart'; import 'dart:convert'; export 'package:huixiang/generated/json/achivement_detail_list.g.dart'; @JsonSerializable() class AchivementDetailList { String? id = ''; String? createTime = ''; String? createUser = ''; String? updateTime = ''; String? updateUser = ''; String? categoryId = ''; String? name = ''; int? level = 0; String? icon = ''; int? score = 0; bool? actived = false; int? sort = 0; int? isDelete = 0; String? lessScore = ''; List? rewardList = []; bool? max = false; bool? get = false; AchivementDetailList(); factory AchivementDetailList.fromJson(Map json) => $AchivementDetailListFromJson(json); Map toJson() => $AchivementDetailListToJson(this); @override String toString() { return jsonEncode(this); } } @JsonSerializable() class RewardList { String? id = ''; String? createTime = ''; String? createUser = ''; String? updateTime = ''; String? updateUser = ''; String? categoryId = ''; String? achievementId = ''; int? rewardType = 0; String? refId = ''; int? isDelete = 0; dynamic achievementCategoryName; dynamic achievementName; dynamic couponName; RewardList(); factory RewardList.fromJson(Map json) => $RewardListFromJson(json); Map toJson() => $RewardListToJson(this); @override String toString() { return jsonEncode(this); } }