RealtimeResponseOutputAudioTranscriptDoneEvent.fromJson constructor

RealtimeResponseOutputAudioTranscriptDoneEvent.fromJson(
  1. Map<String, dynamic> j
)

Implementation

factory RealtimeResponseOutputAudioTranscriptDoneEvent.fromJson(Map<String, dynamic> j) => RealtimeResponseOutputAudioTranscriptDoneEvent(
      eventId: j['event_id'] as String,
      responseId: j['response_id'] as String,
      itemId: j['item_id'] as String,
      outputIndex: j['output_index'] as int,
      contentIndex: j['content_index'] as int,
      transcript: j['transcript'] as String,
    );