InputAudioTranscriptionDeltaEvent.fromJson constructor

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

Creates an InputAudioTranscriptionDeltaEvent from JSON.

Implementation

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