InputAudioBufferSpeechStoppedEvent.fromJson constructor

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

Creates an InputAudioBufferSpeechStoppedEvent from JSON.

Implementation

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