toJson method
Implementation
@override
Map<String, dynamic> toJson() => {
'type': 'tool_call',
'tool_call_id': toolCallId,
'tool_name': toolName,
'input': input,
if (thoughtSignature != null) 'thought_signature': thoughtSignature,
if (providerOptions != null) 'provider_options': providerOptions,
};