toMap method

Map<String, dynamic> toMap()

Serializes this configuration to a Map for passing over the platform channel.

Implementation

Map<String, dynamic> toMap() {
  return {
    'maxTokens': maxTokens,
    'temperature': temperature,
    'useGPU': useGPU,
  };
}