import 'package:json_annotation/json_annotation.dart'; part 'achivement_detail_list.g.dart'; @JsonSerializable(explicitToJson: true) 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); } @JsonSerializable(explicitToJson: true) 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); }