AnthropicMCPToolConfiguration.fromJson constructor

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

Implementation

factory AnthropicMCPToolConfiguration.fromJson(Map<String, dynamic> json) =>
    AnthropicMCPToolConfiguration(
      enabled: json['enabled'] as bool?,
      allowedTools: json['allowed_tools'] != null
          ? List<String>.from(json['allowed_tools'] as List)
          : null,
    );