RealtimeResponseAudioTranscriptDoneEvent.fromJson constructor

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

Implementation

factory RealtimeResponseAudioTranscriptDoneEvent.fromJson(Map<String, dynamic> j) => RealtimeResponseAudioTranscriptDoneEvent(
      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,
    );