toJson method
Implementation
@override
Map<String, dynamic> toJson() => {
'type': 'reasoning',
'text': text,
if (signature != null) 'signature': signature,
if (providerOptions != null) 'provider_options': providerOptions,
};