toJson method
Implementation
@override
Map<String, dynamic> toJson() => {
'type': 'function_call',
'arguments': arguments,
'call_id': callId,
'name': name,
if (id != null) 'id': id,
if (status != null) 'status': status!.toJson(),
};