ResponseTextDoneEvent.fromJson constructor
Creates a ResponseTextDoneEvent from JSON.
Implementation
factory ResponseTextDoneEvent.fromJson(Map<String, dynamic> json) {
return ResponseTextDoneEvent(
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,
text: json['text'] as String,
);
}