GetAgentDialogflowV3beta1Result.fromMap constructor

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

Implementation

factory GetAgentDialogflowV3beta1Result.fromMap(Map<String, dynamic> map) {
  return GetAgentDialogflowV3beta1Result(
    advancedSettings: GoogleCloudDialogflowCxV3beta1AdvancedSettingsResponse.fromMap((map['advancedSettings']! as Map).cast<String, dynamic>()),
    answerFeedbackSettings: GoogleCloudDialogflowCxV3beta1AgentAnswerFeedbackSettingsResponse.fromMap((map['answerFeedbackSettings']! as Map).cast<String, dynamic>()),
    avatarUri: map['avatarUri'] as String,
    defaultLanguageCode: map['defaultLanguageCode'] as String,
    description: map['description'] as String,
    displayName: map['displayName'] as String,
    enableSpellCorrection: map['enableSpellCorrection'] as bool,
    enableStackdriverLogging: map['enableStackdriverLogging'] as bool,
    genAppBuilderSettings: GoogleCloudDialogflowCxV3beta1AgentGenAppBuilderSettingsResponse.fromMap((map['genAppBuilderSettings']! as Map).cast<String, dynamic>()),
    gitIntegrationSettings: GoogleCloudDialogflowCxV3beta1AgentGitIntegrationSettingsResponse.fromMap((map['gitIntegrationSettings']! as Map).cast<String, dynamic>()),
    locked: map['locked'] as bool,
    name: map['name'] as String,
    securitySettings: map['securitySettings'] as String,
    speechToTextSettings: GoogleCloudDialogflowCxV3beta1SpeechToTextSettingsResponse.fromMap((map['speechToTextSettings']! as Map).cast<String, dynamic>()),
    startFlow: map['startFlow'] as String,
    supportedLanguageCodes: (map['supportedLanguageCodes'] as List).cast<String>(),
    textToSpeechSettings: GoogleCloudDialogflowCxV3beta1TextToSpeechSettingsResponse.fromMap((map['textToSpeechSettings']! as Map).cast<String, dynamic>()),
    timeZone: map['timeZone'] as String,
  );
}