toJson method
Implementation
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
if (this.title != null) {
json[r'title'] = this.title;
} else {
json[r'title'] = null;
}
if (this.description != null) {
json[r'description'] = this.description;
} else {
json[r'description'] = null;
}
if (this.status != null) {
json[r'status'] = this.status;
} else {
json[r'status'] = null;
}
if (this.dueDate != null) {
json[r'dueDate'] = this.dueDate!.toUtc().toIso8601String();
} else {
json[r'dueDate'] = null;
}
if (this.priority != null) {
json[r'priority'] = this.priority;
} else {
json[r'priority'] = null;
}
json[r'labels'] = this.labels;
json[r'tags'] = this.tags;
if (this.assigneeId != null) {
json[r'assigneeId'] = this.assigneeId;
} else {
json[r'assigneeId'] = null;
}
if (this.parentTaskId != null) {
json[r'parentTaskId'] = this.parentTaskId;
} else {
json[r'parentTaskId'] = null;
}
return json;
}