V2modelsIntentConfirmationSettingCodeHook.fromMap constructor
V2modelsIntentConfirmationSettingCodeHook.fromMap(
- Map<String, dynamic> map
)
Implementation
factory V2modelsIntentConfirmationSettingCodeHook.fromMap(Map<String, dynamic> map) {
return V2modelsIntentConfirmationSettingCodeHook(
active: pulumi.Input.fromValue(map['active'] as bool),
enableCodeHookInvocation: pulumi.Input.fromValue(map['enableCodeHookInvocation'] as bool),
invocationLabel: (() { final guardedValue = map['invocationLabel']; if (guardedValue == null) return null; return pulumi.Input.fromValue(guardedValue as String); })(),
postCodeHookSpecification: (() { final guardedValue = map['postCodeHookSpecification']; if (guardedValue == null) return null; return pulumi.Input.fromValue(V2modelsIntentConfirmationSettingCodeHookPostCodeHookSpecification.fromMap((guardedValue as Map).cast<String, dynamic>())); })(),
);
}