toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
  if (audioTimestamp != null) 'audioTimestamp': audioTimestamp!,
  if (candidateCount != null) 'candidateCount': candidateCount!,
  if (enableAffectiveDialog != null)
    'enableAffectiveDialog': enableAffectiveDialog!,
  if (frequencyPenalty != null) 'frequencyPenalty': frequencyPenalty!,
  if (logprobs != null) 'logprobs': logprobs!,
  if (maxOutputTokens != null) 'maxOutputTokens': maxOutputTokens!,
  if (mediaResolution != null) 'mediaResolution': mediaResolution!,
  if (presencePenalty != null) 'presencePenalty': presencePenalty!,
  if (responseJsonSchema != null) 'responseJsonSchema': responseJsonSchema!,
  if (responseLogprobs != null) 'responseLogprobs': responseLogprobs!,
  if (responseMimeType != null) 'responseMimeType': responseMimeType!,
  if (responseModalities != null) 'responseModalities': responseModalities!,
  if (responseSchema != null) 'responseSchema': responseSchema!,
  if (routingConfig != null) 'routingConfig': routingConfig!,
  if (seed != null) 'seed': seed!,
  if (speechConfig != null) 'speechConfig': speechConfig!,
  if (stopSequences != null) 'stopSequences': stopSequences!,
  if (temperature != null) 'temperature': temperature!,
  if (thinkingConfig != null) 'thinkingConfig': thinkingConfig!,
  if (topK != null) 'topK': topK!,
  if (topP != null) 'topP': topP!,
};