CustomToolCallOutputItem.fromJson constructor
Creates a CustomToolCallOutputItem from JSON.
Implementation
factory CustomToolCallOutputItem.fromJson(Map<String, dynamic> json) {
return CustomToolCallOutputItem(
id: json['id'] as String,
agent: json['agent'] != null
? AgentTag.fromJson(json['agent'] as Map<String, dynamic>)
: null,
callId: json['call_id'] as String,
output: FunctionCallOutput.fromJson(json['output']),
status: json['status'] != null
? FunctionCallOutputStatus.fromJson(json['status'] as String)
: null,
createdBy: json['created_by'] as String?,
caller: json['caller'] != null
? ToolCallCaller.fromJson(json['caller'] as Map<String, dynamic>)
: null,
);
}