RunToolCall.fromJson constructor

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

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>,
    ),
  );
}