toJson method
Implementation
@override
Map<String, dynamic> toJson() => {
'type': 'mcp_call',
'id': id,
'name': name,
'arguments': arguments,
'server_label': serverLabel,
if (error != null) 'error': error!.toJson(),
if (output != null) 'output': output,
};