Map<String, dynamic> toJson() { final json = <String, dynamic>{}; if (links != null) { json[r'links'] = links; } if (tasks != null) { json[r'tasks'] = tasks; } return json; }