ResponseAudioDeltaEvent.fromJson constructor

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

Creates a ResponseAudioDeltaEvent from JSON.

Implementation

factory ResponseAudioDeltaEvent.fromJson(Map<String, dynamic> json) {
  return ResponseAudioDeltaEvent(
    eventId: json['event_id'] as String,
    responseId: json['response_id'] as String,
    itemId: json['item_id'] as String,
    outputIndex: json['output_index'] as int,
    contentIndex: json['content_index'] as int,
    delta: json['delta'] as String,
  );
}