ToolParameter.fromJson constructor

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

Implementation

factory ToolParameter.fromJson(Map<String, dynamic> json) {
  return ToolParameter(
    type: json['type'] as String,
    description: json['description'] as String,
    required: json['required'] as bool? ?? false,
  );
}