discontinuedPackage flutter_gemma has been discontinued and replaced by flutter_edge_ai.

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,
};