NotificationConfig.fromMap constructor

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

Implementation

factory NotificationConfig.fromMap(Map<String, dynamic> map) {
  return NotificationConfig(
    eventTypes: (() { final guardedValue = map['eventTypes']; if (guardedValue == null) return null; return pulumi.Input.fromValue(pulumi.Input.decodeList<NotificationConfigEventTypesItem>(guardedValue, (value) => NotificationConfigEventTypesItem.fromValue(value as String))); })(),
    payloadFormat: pulumi.Input.fromValue(NotificationConfigPayloadFormat.fromValue(map['payloadFormat']! as String)),
    pubsubTopic: pulumi.Input.fromValue(map['pubsubTopic'] as String),
  );
}