toJson method
Implementation
Map<String, Object?> toJson() {
var name = this.name;
var summary = this.summary;
var color = this.color;
var done = this.done;
final json = <String, Object?>{};
if (name != null) {
json[r'name'] = name;
}
if (summary != null) {
json[r'summary'] = summary;
}
if (color != null) {
json[r'color'] = color.toJson();
}
json[r'done'] = done;
return json;
}