toJson method
Implementation
Map<String, dynamic> toJson() => {
'label': label,
'description': description,
if (allowedTools != null) 'allowed_tools': allowedTools!.map((e) => e.toJson()).toList(),
if (headers != null) 'headers': headers,
if (requireApproval != null) 'require_approval': requireApproval,
if (oauth != null) 'oauth': oauth!.toJson(),
if (openaiConnectorId != null) 'openai_connector_id': openaiConnectorId,
};