GoogleCloudDialogflowCxV3GenerativeSettingsFallbackSettings.fromJson constructor

GoogleCloudDialogflowCxV3GenerativeSettingsFallbackSettings.fromJson(
  1. Map json_
)

Implementation

GoogleCloudDialogflowCxV3GenerativeSettingsFallbackSettings.fromJson(
    core.Map json_)
    : this(
        promptTemplates: json_.containsKey('promptTemplates')
            ? (json_['promptTemplates'] as core.List)
                .map((value) =>
                    GoogleCloudDialogflowCxV3GenerativeSettingsFallbackSettingsPromptTemplate
                        .fromJson(
                            value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        selectedPrompt: json_.containsKey('selectedPrompt')
            ? json_['selectedPrompt'] as core.String
            : null,
      );