InputAudioTranscriptionFailedEvent.fromJson constructor

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

Creates an InputAudioTranscriptionFailedEvent from JSON.

Implementation

factory InputAudioTranscriptionFailedEvent.fromJson(
  Map<String, dynamic> json,
) {
  return InputAudioTranscriptionFailedEvent(
    eventId: json['event_id'] as String,
    itemId: json['item_id'] as String,
    contentIndex: json['content_index'] as int,
    error: RealtimeError.fromJson(json['error'] as Map<String, dynamic>),
  );
}