ConversationProfileArgs.fromMap constructor

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

Implementation

factory ConversationProfileArgs.fromMap(Map<String, dynamic> map) {
  return ConversationProfileArgs(
    automatedAgentConfig: (() { final guardedValue = map['automatedAgentConfig']; if (guardedValue == null) return null; return pulumi.Input.fromValue(GoogleCloudDialogflowV2AutomatedAgentConfig.fromMap((guardedValue as Map).cast<String, dynamic>())); })(),
    displayName: pulumi.Input.fromValue(map['displayName'] as String),
    humanAgentAssistantConfig: (() { final guardedValue = map['humanAgentAssistantConfig']; if (guardedValue == null) return null; return pulumi.Input.fromValue(GoogleCloudDialogflowV2HumanAgentAssistantConfig.fromMap((guardedValue as Map).cast<String, dynamic>())); })(),
    humanAgentHandoffConfig: (() { final guardedValue = map['humanAgentHandoffConfig']; if (guardedValue == null) return null; return pulumi.Input.fromValue(GoogleCloudDialogflowV2HumanAgentHandoffConfig.fromMap((guardedValue as Map).cast<String, dynamic>())); })(),
    languageCode: (() { final guardedValue = map['languageCode']; if (guardedValue == null) return null; return pulumi.Input.fromValue(guardedValue as String); })(),
    location: (() { final guardedValue = map['location']; if (guardedValue == null) return null; return pulumi.Input.fromValue(guardedValue as String); })(),
    loggingConfig: (() { final guardedValue = map['loggingConfig']; if (guardedValue == null) return null; return pulumi.Input.fromValue(GoogleCloudDialogflowV2LoggingConfig.fromMap((guardedValue as Map).cast<String, dynamic>())); })(),
    name: (() { final guardedValue = map['name']; if (guardedValue == null) return null; return pulumi.Input.fromValue(guardedValue as String); })(),
    newMessageEventNotificationConfig: (() { final guardedValue = map['newMessageEventNotificationConfig']; if (guardedValue == null) return null; return pulumi.Input.fromValue(GoogleCloudDialogflowV2NotificationConfig.fromMap((guardedValue as Map).cast<String, dynamic>())); })(),
    notificationConfig: (() { final guardedValue = map['notificationConfig']; if (guardedValue == null) return null; return pulumi.Input.fromValue(GoogleCloudDialogflowV2NotificationConfig.fromMap((guardedValue as Map).cast<String, dynamic>())); })(),
    project: (() { final guardedValue = map['project']; if (guardedValue == null) return null; return pulumi.Input.fromValue(guardedValue as String); })(),
    securitySettings: (() { final guardedValue = map['securitySettings']; if (guardedValue == null) return null; return pulumi.Input.fromValue(guardedValue as String); })(),
    sttConfig: (() { final guardedValue = map['sttConfig']; if (guardedValue == null) return null; return pulumi.Input.fromValue(GoogleCloudDialogflowV2SpeechToTextConfig.fromMap((guardedValue as Map).cast<String, dynamic>())); })(),
    timeZone: (() { final guardedValue = map['timeZone']; if (guardedValue == null) return null; return pulumi.Input.fromValue(guardedValue as String); })(),
    ttsConfig: (() { final guardedValue = map['ttsConfig']; if (guardedValue == null) return null; return pulumi.Input.fromValue(GoogleCloudDialogflowV2SynthesizeSpeechConfig.fromMap((guardedValue as Map).cast<String, dynamic>())); })(),
  );
}