fromJson static method
Switch-based factory that dispatches to the correct subclass.
Implementation
static ResponseWebSearchCallInProgress fromJson(Map<String, dynamic> json) {
switch (json['type']) {
case 'response.web_search_call.in_progress':
return ResponseWebSearchCallInProgress(json);
default:
throw ArgumentError(
'Unknown web-search event type "${json['type']}".',
);
}
}