class Task { Task(); 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; factory Task.fromJson(Map 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 toJson() => { '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, }; }