V2modelsIntentFulfillmentCodeHook.fromMap constructor

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

Implementation

factory V2modelsIntentFulfillmentCodeHook.fromMap(Map<String, dynamic> map) {
  return V2modelsIntentFulfillmentCodeHook(
    active: (() { final guardedValue = map['active']; if (guardedValue == null) return null; return pulumi.Input.fromValue(guardedValue as bool); })(),
    enabled: pulumi.Input.fromValue(map['enabled'] as bool),
    fulfillmentUpdatesSpecification: (() { final guardedValue = map['fulfillmentUpdatesSpecification']; if (guardedValue == null) return null; return pulumi.Input.fromValue(V2modelsIntentFulfillmentCodeHookFulfillmentUpdatesSpecification.fromMap((guardedValue as Map).cast<String, dynamic>())); })(),
    postFulfillmentStatusSpecification: (() { final guardedValue = map['postFulfillmentStatusSpecification']; if (guardedValue == null) return null; return pulumi.Input.fromValue(V2modelsIntentFulfillmentCodeHookPostFulfillmentStatusSpecification.fromMap((guardedValue as Map).cast<String, dynamic>())); })(),
  );
}