fromJson static method

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

Implementation

static ContentPartToolResult fromJson(Map<String, dynamic> json) =>
    ContentPartToolResult(
      toolCallId: json['tool_call_id'] as String,
      result: json['result'],
      toolName: json['tool_name'] as String?,
      isError: json['is_error'] as bool?,
      preliminary: json['preliminary'] as bool?,
      isDynamic: json['dynamic'] as bool?,
      providerOptions: json['provider_options'] as Map<String, dynamic>?,
    );