toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (candidateCount != null) 'candidateCount': candidateCount!,
      if (frequencyPenalty != null) 'frequencyPenalty': frequencyPenalty!,
      if (maxOutputTokens != null) 'maxOutputTokens': maxOutputTokens!,
      if (presencePenalty != null) 'presencePenalty': presencePenalty!,
      if (responseMimeType != null) 'responseMimeType': responseMimeType!,
      if (responseSchema != null) 'responseSchema': responseSchema!,
      if (stopSequences != null) 'stopSequences': stopSequences!,
      if (temperature != null) 'temperature': temperature!,
      if (topK != null) 'topK': topK!,
      if (topP != null) 'topP': topP!,
    };