toJson method

Map<String, Object?> toJson()

Serializes the tool to a JSON map.

Implementation

Map<String, Object?> toJson() => {
  _Json.name: name,
  _Json.description: description,
  _Json.inputSchema: inputSchema.value,
};