InputAudioBufferSpeechStartedEvent.fromJson constructor

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

Creates an InputAudioBufferSpeechStartedEvent from JSON.

Implementation

factory InputAudioBufferSpeechStartedEvent.fromJson(
  Map<String, dynamic> json,
) {
  return InputAudioBufferSpeechStartedEvent(
    eventId: json['event_id'] as String,
    audioStartMs: json['audio_start_ms'] as int,
    itemId: json['item_id'] as String,
  );
}