GoogleCloudDialogflowCxV3GenerativeSettings.fromJson constructor

GoogleCloudDialogflowCxV3GenerativeSettings.fromJson(
  1. Map json_
)

Implementation

GoogleCloudDialogflowCxV3GenerativeSettings.fromJson(core.Map json_)
    : this(
        fallbackSettings: json_.containsKey('fallbackSettings')
            ? GoogleCloudDialogflowCxV3GenerativeSettingsFallbackSettings
                .fromJson(json_['fallbackSettings']
                    as core.Map<core.String, core.dynamic>)
            : null,
        generativeSafetySettings:
            json_.containsKey('generativeSafetySettings')
                ? GoogleCloudDialogflowCxV3SafetySettings.fromJson(
                    json_['generativeSafetySettings']
                        as core.Map<core.String, core.dynamic>)
                : null,
        knowledgeConnectorSettings: json_
                .containsKey('knowledgeConnectorSettings')
            ? GoogleCloudDialogflowCxV3GenerativeSettingsKnowledgeConnectorSettings
                .fromJson(json_['knowledgeConnectorSettings']
                    as core.Map<core.String, core.dynamic>)
            : null,
        languageCode: json_.containsKey('languageCode')
            ? json_['languageCode'] as core.String
            : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
      );