toJson method
Implementation
@override
Map<String, dynamic> toJson() => {
'type': 'web_search_preview',
if (searchContextSize != null) 'search_context_size': searchContextSize!.toJson(),
if (userLocation != null) 'user_location': userLocation!.toJson(),
};