InputAudioTranscriptionSegmentEvent.fromJson constructor
Creates an InputAudioTranscriptionSegmentEvent from JSON.
Implementation
factory InputAudioTranscriptionSegmentEvent.fromJson(
Map<String, dynamic> json,
) {
return InputAudioTranscriptionSegmentEvent(
eventId: json['event_id'] as String,
itemId: json['item_id'] as String,
contentIndex: json['content_index'] as int,
text: json['text'] as String,
id: json['id'] as String,
speaker: json['speaker'] as String?,
start: (json['start'] as num).toDouble(),
end: (json['end'] as num).toDouble(),
);
}