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.

51 lines
1.4 KiB

4 years ago
class Task {
Task();
3 years ago
String? aspects;
int? complateNum;
int? conplateNum;
String? createTime;
String? createUser;
String? id;
int? limitDay;
String? name;
int? rewardType;
String? rewardValue;
bool? status;
String? type;
String? updateTime;
String? updateUser;
4 years ago
4 years ago
factory Task.fromJson(Map<String, dynamic> json) => Task()
..aspects = json['aspects'] as String
..complateNum = json['complateNum'] as int
..conplateNum = json['conplateNum'] as int
..createTime = json['createTime'] as String
..createUser = json['createUser'] as String
..id = json['id'] as String
..limitDay = json['limitDay'] as int
..name = json['name'] as String
..rewardType = json['rewardType'] as int
..rewardValue = json['rewardValue'] as String
..status = json['status'] as bool
..type = json['type'] as String
..updateTime = json['updateTime'] as String
..updateUser = json['updateUser'] as String;
Map<String, dynamic> toJson() => <String, dynamic>{
'aspects': this.aspects,
'complateNum': this.complateNum,
'conplateNum': this.conplateNum,
'createTime': this.createTime,
'createUser': this.createUser,
'id': this.id,
'limitDay': this.limitDay,
'name': this.name,
'rewardType': this.rewardType,
'rewardValue': this.rewardValue,
'status': this.status,
'type': this.type,
'updateTime': this.updateTime,
'updateUser': this.updateUser,
};
4 years ago
}