ResponseContentPartDoneEvent.fromJson constructor

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

Creates a ResponseContentPartDoneEvent from JSON.

Implementation

factory ResponseContentPartDoneEvent.fromJson(Map<String, dynamic> json) {
  return ResponseContentPartDoneEvent(
    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,
    part: json['part'] as Map<String, dynamic>,
  );
}