V2modelsIntentInitialResponseSettingCodeHook.fromMap constructor
V2modelsIntentInitialResponseSettingCodeHook.fromMap(
- Map<String, dynamic> map
)
Implementation
factory V2modelsIntentInitialResponseSettingCodeHook.fromMap(Map<String, dynamic> map) {
return V2modelsIntentInitialResponseSettingCodeHook(
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(V2modelsIntentInitialResponseSettingCodeHookPostCodeHookSpecification.fromMap((guardedValue as Map).cast<String, dynamic>())); })(),
);
}