You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

64 lines
1.5 KiB

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>? rewardList = [];
bool? max = false;
bool? get = false;
AchivementDetailList();
factory AchivementDetailList.fromJson(Map<String, dynamic> json) => $AchivementDetailListFromJson(json);
Map<String, dynamic> 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<String, dynamic> json) => $RewardListFromJson(json);
Map<String, dynamic> toJson() => $RewardListToJson(this);
@override
String toString() {
return jsonEncode(this);
}
}