toJson method
Converts to JSON. Returns either the string "auto" or a Map.
Implementation
@override
Map<String, dynamic> toJson() => {
if (groupId != null) 'group_id': groupId,
if (metadata != null) 'metadata': metadata,
if (workflowName != null) 'workflow_name': workflowName,
};