fromJson static method

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

Implementation

static ContentPartToolCall fromJson(Map<String, dynamic> json) =>
    ContentPartToolCall(
      toolCallId: json['tool_call_id'] as String,
      toolName: json['tool_name'] as String,
      input: json['input'],
      thoughtSignature: json['thought_signature'] as String?,
      providerOptions: json['provider_options'] as Map<String, dynamic>?,
    );