@override Map<String, Object?> toMap() { return { 'taskId': taskId, if (relationshipType != null) 'relationshipType': relationshipType, }; }