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.
120 lines
3.5 KiB
120 lines
3.5 KiB
class TaskData {
|
|
String? userTaskCompleteId;
|
|
String? taskTemplateId;
|
|
int? taskGroup;
|
|
int? taskType;
|
|
int? stageCode;
|
|
String? taskName;
|
|
String? taskDesc;
|
|
String? taskStartDate;
|
|
String? taskEndDate;
|
|
String? rewardValue;
|
|
bool? completeStatus;
|
|
int? rewardReceiveStatus;
|
|
String? completeTime;
|
|
List<SubList>? subList;
|
|
|
|
TaskData(
|
|
{this.userTaskCompleteId,
|
|
this.taskGroup,
|
|
this.taskTemplateId,
|
|
this.taskType,
|
|
this.stageCode,
|
|
this.taskName,
|
|
this.taskDesc,
|
|
this.taskStartDate,
|
|
this.taskEndDate,
|
|
this.rewardValue,
|
|
this.completeStatus,
|
|
this.rewardReceiveStatus,
|
|
this.completeTime,
|
|
this.subList});
|
|
|
|
TaskData.fromJson(Map<String, dynamic> json) {
|
|
userTaskCompleteId = json['userTaskCompleteId'];
|
|
taskTemplateId = json['taskTemplateId'];
|
|
taskGroup = json['taskGroup'];
|
|
taskType = json['taskType'];
|
|
stageCode = json['stageCode'];
|
|
taskName = json['taskName'];
|
|
taskDesc = json['taskDesc'];
|
|
taskStartDate = json['taskStartDate'];
|
|
taskEndDate = json['taskEndDate'];
|
|
rewardValue = json['rewardValue'];
|
|
completeStatus = json['completeStatus'];
|
|
rewardReceiveStatus = json['rewardReceiveStatus'];
|
|
completeTime = json['completeTime'];
|
|
if (json['subList'] != null) {
|
|
subList = <SubList>[];
|
|
json['subList'].forEach((v) {
|
|
subList!.add(new SubList.fromJson(v));
|
|
});
|
|
}
|
|
}
|
|
|
|
Map<String, dynamic> toJson() {
|
|
final Map<String, dynamic> data = new Map<String, dynamic>();
|
|
data['userTaskCompleteId'] = this.userTaskCompleteId;
|
|
data['taskTemplateId'] = this.taskTemplateId;
|
|
data['taskGroup'] = this.taskGroup;
|
|
data['taskType'] = this.taskType;
|
|
data['stageCode'] = this.stageCode;
|
|
data['taskName'] = this.taskName;
|
|
data['taskDesc'] = this.taskDesc;
|
|
data['taskStartDate'] = this.taskStartDate;
|
|
data['taskEndDate'] = this.taskEndDate;
|
|
data['rewardValue'] = this.rewardValue;
|
|
data['completeStatus'] = this.completeStatus;
|
|
data['rewardReceiveStatus'] = this.rewardReceiveStatus;
|
|
data['completeTime'] = this.completeTime;
|
|
if (this.subList != null) {
|
|
data['subList'] = this.subList!.map((v) => v.toJson()).toList();
|
|
}
|
|
return data;
|
|
}
|
|
}
|
|
|
|
class SubList {
|
|
String? subTaskName;
|
|
int? subTaskType;
|
|
String? subTaskDesc;
|
|
int? requiredCount;
|
|
int? completeCount;
|
|
bool? completeStatus;
|
|
String? completeTime;
|
|
int? sort;
|
|
|
|
SubList(
|
|
{this.subTaskName,
|
|
this.subTaskType,
|
|
this.subTaskDesc,
|
|
this.requiredCount,
|
|
this.completeCount,
|
|
this.completeStatus,
|
|
this.completeTime,
|
|
this.sort});
|
|
|
|
SubList.fromJson(Map<String, dynamic> json) {
|
|
subTaskName = json['subTaskName'];
|
|
subTaskType = json['subTaskType'];
|
|
subTaskDesc = json['subTaskDesc'];
|
|
requiredCount = json['requiredCount'];
|
|
completeCount = json['completeCount'];
|
|
completeStatus = json['completeStatus'];
|
|
completeTime = json['completeTime'];
|
|
sort = json['sort'];
|
|
}
|
|
|
|
Map<String, dynamic> toJson() {
|
|
final Map<String, dynamic> data = new Map<String, dynamic>();
|
|
data['subTaskName'] = this.subTaskName;
|
|
data['subTaskType'] = this.subTaskType;
|
|
data['subTaskDesc'] = this.subTaskDesc;
|
|
data['requiredCount'] = this.requiredCount;
|
|
data['completeCount'] = this.completeCount;
|
|
data['completeStatus'] = this.completeStatus;
|
|
data['completeTime'] = this.completeTime;
|
|
data['sort'] = this.sort;
|
|
return data;
|
|
}
|
|
}
|