AiConversationParams.fromJson constructor
AiConversationParams.fromJson(
- Map<String, dynamic> json
)
Implementation
AiConversationParams.fromJson(Map<String, dynamic> json) {
type = json['type'];
widgetSettings = json['widget_settings'] != null
? WidgetSettings.fromJson(json['widget_settings'])
: null;
response = json['response'] != null
? ResponseData.fromJson(json['response'])
: null;
contentIndex = json['content_index'];
delta = json['delta'];
itemId = json['item_id'];
outputIndex = json['output_index'];
responseId = json['response_id'];
item =
json['item'] != null ? ConversationItem.fromJson(json['item']) : null;
previousItemId = json['previous_item_id'];
}