toJson method
Implementation
@override
Object toJson() => {
'model': model,
if (prompt != null) 'prompt': prompt!.toJson(),
if (temperature != null) 'temperature': encodeDouble(temperature),
if (candidateCount != null) 'candidateCount': candidateCount,
if (topP != null) 'topP': encodeDouble(topP),
if (topK != null) 'topK': topK,
};