fromJson static method

ResponseFileSearchCallInProgress fromJson(
  1. Map<String, dynamic> json
)
override

Implementation

static ResponseFileSearchCallInProgress fromJson(Map<String, dynamic> json) {
  switch (json['type']) {
    case 'response.file_search_call.in_progress':
      return ResponseFileSearchCallInProgress(json);
    default:
      throw ArgumentError('Unknown file-search event type "${json['type']}".');
  }
}