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