import 'package:json_annotation/json_annotation.dart'; part 'task.g.dart'; @JsonSerializable(explicitToJson: true) 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) => _$TaskFromJson(json); Map toJson() => _$TaskToJson(this); }