toJson method
Implementation
@override
Map<String, dynamic> toJson() => <String, dynamic>{
'title': title?.toJson(),
'tasks': tasks.map((item) => item.toJson()).toList(),
'others_can_add_tasks': othersCanAddTasks,
'can_add_tasks': canAddTasks,
'others_can_mark_tasks_as_done': othersCanMarkTasksAsDone,
'can_mark_tasks_as_done': canMarkTasksAsDone,
'@type': constructor,
};