GetConversationProfileResult.fromMap constructor

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

Implementation

factory GetConversationProfileResult.fromMap(Map<String, dynamic> map) {
  return GetConversationProfileResult(
    automatedAgentConfig: GoogleCloudDialogflowV2AutomatedAgentConfigResponse.fromMap((map['automatedAgentConfig']! as Map).cast<String, dynamic>()),
    createTime: map['createTime'] as String,
    displayName: map['displayName'] as String,
    humanAgentAssistantConfig: GoogleCloudDialogflowV2HumanAgentAssistantConfigResponse.fromMap((map['humanAgentAssistantConfig']! as Map).cast<String, dynamic>()),
    humanAgentHandoffConfig: GoogleCloudDialogflowV2HumanAgentHandoffConfigResponse.fromMap((map['humanAgentHandoffConfig']! as Map).cast<String, dynamic>()),
    languageCode: map['languageCode'] as String,
    loggingConfig: GoogleCloudDialogflowV2LoggingConfigResponse.fromMap((map['loggingConfig']! as Map).cast<String, dynamic>()),
    name: map['name'] as String,
    newMessageEventNotificationConfig: GoogleCloudDialogflowV2NotificationConfigResponse.fromMap((map['newMessageEventNotificationConfig']! as Map).cast<String, dynamic>()),
    notificationConfig: GoogleCloudDialogflowV2NotificationConfigResponse.fromMap((map['notificationConfig']! as Map).cast<String, dynamic>()),
    securitySettings: map['securitySettings'] as String,
    sttConfig: GoogleCloudDialogflowV2SpeechToTextConfigResponse.fromMap((map['sttConfig']! as Map).cast<String, dynamic>()),
    timeZone: map['timeZone'] as String,
    ttsConfig: GoogleCloudDialogflowV2SynthesizeSpeechConfigResponse.fromMap((map['ttsConfig']! as Map).cast<String, dynamic>()),
    updateTime: map['updateTime'] as String,
  );
}