toJson method
Implementation
@override
Object toJson() => {
'model': model,
'prompt': ?prompt?.toJson(),
if (temperature case final $1?) 'temperature': encodeDouble($1),
'candidateCount': ?candidateCount,
if (topP case final $1?) 'topP': encodeDouble($1),
'topK': ?topK,
};