V2modelsBotLocaleArgs.fromMap constructor
V2modelsBotLocaleArgs.fromMap(
- Map<String, dynamic> map
)
Implementation
factory V2modelsBotLocaleArgs.fromMap(Map<String, dynamic> map) {
return V2modelsBotLocaleArgs(
botId: pulumi.Input.fromValue(map['botId'] as String),
botVersion: pulumi.Input.fromValue(map['botVersion'] as String),
description: (() { final guardedValue = map['description']; if (guardedValue == null) return null; return pulumi.Input.fromValue(guardedValue as String); })(),
localeId: pulumi.Input.fromValue(map['localeId'] as String),
nLuIntentConfidenceThreshold: pulumi.Input.fromValue((map['nLuIntentConfidenceThreshold'] as num).toDouble()),
name: (() { final guardedValue = map['name']; if (guardedValue == null) return null; return pulumi.Input.fromValue(guardedValue as String); })(),
region: (() { final guardedValue = map['region']; if (guardedValue == null) return null; return pulumi.Input.fromValue(guardedValue as String); })(),
timeouts: (() { final guardedValue = map['timeouts']; if (guardedValue == null) return null; return pulumi.Input.fromValue(V2modelsBotLocaleTimeouts.fromMap((guardedValue as Map).cast<String, dynamic>())); })(),
voiceSettings: (() { final guardedValue = map['voiceSettings']; if (guardedValue == null) return null; return pulumi.Input.fromValue(V2modelsBotLocaleVoiceSettings.fromMap((guardedValue as Map).cast<String, dynamic>())); })(),
);
}