RunToolCall.fromJson constructor
Creates a RunToolCall from JSON.
Implementation
factory RunToolCall.fromJson(Map<String, dynamic> json) {
return RunToolCall(
id: json['id'] as String,
type: json['type'] as String,
function: RunFunctionCall.fromJson(
json['function'] as Map<String, dynamic>,
),
);
}