GoogleCloudDialogflowV2InferenceParameter.fromJson constructor

GoogleCloudDialogflowV2InferenceParameter.fromJson(
  1. Map json_
)

Implementation

GoogleCloudDialogflowV2InferenceParameter.fromJson(core.Map json_)
    : this(
        maxOutputTokens: json_.containsKey('maxOutputTokens')
            ? json_['maxOutputTokens'] as core.int
            : null,
        temperature: json_.containsKey('temperature')
            ? (json_['temperature'] as core.num).toDouble()
            : null,
        topK: json_.containsKey('topK') ? json_['topK'] as core.int : null,
        topP: json_.containsKey('topP')
            ? (json_['topP'] as core.num).toDouble()
            : null,
      );