discontinuedPackage flutter_gemma has been discontinued and replaced by flutter_edge_ai.

toJson abstract method

Map<String, Object?> toJson()

Serializes the part to a JSON map.

The returned map must contain a key matching typeKey with a unique string identifier for the part type. See defaultPartConverterRegistry for default part types.

Implementation

Map<String, Object?> toJson();