NotificationArgs.fromMap constructor
NotificationArgs.fromMap(
- Map<String, dynamic> map
)
Implementation
factory NotificationArgs.fromMap(Map<String, dynamic> map) {
return NotificationArgs(
groupNames: pulumi.Input.fromValue((map['groupNames'] as List).cast<String>()),
notifications: pulumi.Input.fromValue(pulumi.Input.decodeList<NotificationType>(map['notifications']!, (value) => NotificationType.fromValue(value as String))),
region: (() { final guardedValue = map['region']; if (guardedValue == null) return null; return pulumi.Input.fromValue(guardedValue as String); })(),
topicArn: pulumi.Input.fromValue(map['topicArn'] as String),
);
}