ConversationProfile constructor

ConversationProfile({
  1. String? name,
  2. String? displayName,
  3. AutomatedAgentConfig? automatedAgentConfig,
  4. HumanAgentAssistantConfig? humanAgentAssistantConfig,
  5. HumanAgentHandoffConfig? humanAgentHandoffConfig,
  6. NotificationConfig? notificationConfig,
  7. LoggingConfig? loggingConfig,
  8. NotificationConfig? newMessageEventNotificationConfig,
  9. SpeechToTextConfig? sttConfig,
  10. String? languageCode,
  11. Timestamp? createTime,
  12. Timestamp? updateTime,
})

Implementation

factory ConversationProfile({
  $core.String? name,
  $core.String? displayName,
  AutomatedAgentConfig? automatedAgentConfig,
  HumanAgentAssistantConfig? humanAgentAssistantConfig,
  HumanAgentHandoffConfig? humanAgentHandoffConfig,
  NotificationConfig? notificationConfig,
  LoggingConfig? loggingConfig,
  NotificationConfig? newMessageEventNotificationConfig,
  $20.SpeechToTextConfig? sttConfig,
  $core.String? languageCode,
  $17.Timestamp? createTime,
  $17.Timestamp? updateTime,
}) {
  final _result = create();
  if (name != null) {
    _result.name = name;
  }
  if (displayName != null) {
    _result.displayName = displayName;
  }
  if (automatedAgentConfig != null) {
    _result.automatedAgentConfig = automatedAgentConfig;
  }
  if (humanAgentAssistantConfig != null) {
    _result.humanAgentAssistantConfig = humanAgentAssistantConfig;
  }
  if (humanAgentHandoffConfig != null) {
    _result.humanAgentHandoffConfig = humanAgentHandoffConfig;
  }
  if (notificationConfig != null) {
    _result.notificationConfig = notificationConfig;
  }
  if (loggingConfig != null) {
    _result.loggingConfig = loggingConfig;
  }
  if (newMessageEventNotificationConfig != null) {
    _result.newMessageEventNotificationConfig =
        newMessageEventNotificationConfig;
  }
  if (sttConfig != null) {
    _result.sttConfig = sttConfig;
  }
  if (languageCode != null) {
    _result.languageCode = languageCode;
  }
  if (createTime != null) {
    _result.createTime = createTime;
  }
  if (updateTime != null) {
    _result.updateTime = updateTime;
  }
  return _result;
}