Map<String, dynamic> toJson() => { "task": task?.toJson(), "subTasks": subTasks.map((x) => x).toList(), };