GoogleCloudDialogflowV2HumanAgentAssistantConfigSuggestionQueryConfig.fromJson constructor

GoogleCloudDialogflowV2HumanAgentAssistantConfigSuggestionQueryConfig.fromJson(
  1. Map json_
)

Implementation

GoogleCloudDialogflowV2HumanAgentAssistantConfigSuggestionQueryConfig.fromJson(
    core.Map json_)
    : this(
        confidenceThreshold:
            (json_['confidenceThreshold'] as core.num?)?.toDouble(),
        contextFilterSettings: json_.containsKey('contextFilterSettings')
            ? GoogleCloudDialogflowV2HumanAgentAssistantConfigSuggestionQueryConfigContextFilterSettings
                .fromJson(json_['contextFilterSettings']
                    as core.Map<core.String, core.dynamic>)
            : null,
        contextSize: json_['contextSize'] as core.int?,
        dialogflowQuerySource: json_.containsKey('dialogflowQuerySource')
            ? GoogleCloudDialogflowV2HumanAgentAssistantConfigSuggestionQueryConfigDialogflowQuerySource
                .fromJson(json_['dialogflowQuerySource']
                    as core.Map<core.String, core.dynamic>)
            : null,
        documentQuerySource: json_.containsKey('documentQuerySource')
            ? GoogleCloudDialogflowV2HumanAgentAssistantConfigSuggestionQueryConfigDocumentQuerySource
                .fromJson(json_['documentQuerySource']
                    as core.Map<core.String, core.dynamic>)
            : null,
        knowledgeBaseQuerySource: json_
                .containsKey('knowledgeBaseQuerySource')
            ? GoogleCloudDialogflowV2HumanAgentAssistantConfigSuggestionQueryConfigKnowledgeBaseQuerySource
                .fromJson(json_['knowledgeBaseQuerySource']
                    as core.Map<core.String, core.dynamic>)
            : null,
        maxResults: json_['maxResults'] as core.int?,
        sections: json_.containsKey('sections')
            ? GoogleCloudDialogflowV2HumanAgentAssistantConfigSuggestionQueryConfigSections
                .fromJson(
                    json_['sections'] as core.Map<core.String, core.dynamic>)
            : null,
      );