toJson method

Map<String, dynamic> toJson()

Converts the tool spec to a JSON-serializable map.

Implementation

Map<String, dynamic> toJson() {
  return {
    'name': name,
    'description': description,
    'inputJsonSchema': inputJsonSchema,
    'strict': strict,
  };
}