toJson method

  1. @override
Map<String, dynamic> toJson()
override

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(),
    };