toMap method
Converts this RelatedTaskMetadata into a JSON-compatible map.
Implementation
@override
Map<String, Object?> toMap() {
return {
'taskId': taskId,
if (relationshipType != null) 'relationshipType': relationshipType,
};
}
Converts this RelatedTaskMetadata into a JSON-compatible map.
@override
Map<String, Object?> toMap() {
return {
'taskId': taskId,
if (relationshipType != null) 'relationshipType': relationshipType,
};
}