GoogleCloudDialogflowV2HumanAgentAssistantConfigSuggestionQueryConfigResponse.fromMap constructor

GoogleCloudDialogflowV2HumanAgentAssistantConfigSuggestionQueryConfigResponse.fromMap(
  1. Map<String, dynamic> map
)

Implementation

factory GoogleCloudDialogflowV2HumanAgentAssistantConfigSuggestionQueryConfigResponse.fromMap(Map<String, dynamic> map) {
  return GoogleCloudDialogflowV2HumanAgentAssistantConfigSuggestionQueryConfigResponse(
    confidenceThreshold: pulumi.Input.fromValue(map['confidenceThreshold'] as double),
    contextFilterSettings: pulumi.Input.fromValue(GoogleCloudDialogflowV2HumanAgentAssistantConfigSuggestionQueryConfigContextFilterSettingsResponse.fromMap((map['contextFilterSettings']! as Map).cast<String, dynamic>())),
    dialogflowQuerySource: pulumi.Input.fromValue(GoogleCloudDialogflowV2HumanAgentAssistantConfigSuggestionQueryConfigDialogflowQuerySourceResponse.fromMap((map['dialogflowQuerySource']! as Map).cast<String, dynamic>())),
    documentQuerySource: pulumi.Input.fromValue(GoogleCloudDialogflowV2HumanAgentAssistantConfigSuggestionQueryConfigDocumentQuerySourceResponse.fromMap((map['documentQuerySource']! as Map).cast<String, dynamic>())),
    knowledgeBaseQuerySource: pulumi.Input.fromValue(GoogleCloudDialogflowV2HumanAgentAssistantConfigSuggestionQueryConfigKnowledgeBaseQuerySourceResponse.fromMap((map['knowledgeBaseQuerySource']! as Map).cast<String, dynamic>())),
    maxResults: pulumi.Input.fromValue(map['maxResults'] as int),
  );
}