toMap method

Map<String, dynamic> toMap()

Converts the object to a Map<String, dynamic>

Implementation

Map<String, dynamic> toMap() {
  return <String, dynamic>{
    'model': model,
    'n': n,
    'temperature': temperature,
    'top_p': topP,
  };
}