toJson method
Re-encode to the externally-tagged wire shape ({tag: payload}).
Implementation
@override
Map<String, dynamic> toJson() => {
'ToolInputStart': {
'id': id,
'tool_name': toolName,
if (providerExecuted != null) 'provider_executed': providerExecuted,
if (isDynamic != null) 'dynamic': isDynamic,
if (title != null) 'title': title,
if (providerMetadata != null) 'provider_metadata': providerMetadata,
},
};