NotificationConfig.fromJson constructor
Implementation
factory NotificationConfig.fromJson(Map<String, dynamic> json) {
return NotificationConfig(
notificationArn: json['NotificationArn'] as String?,
notificationEvents: (json['NotificationEvents'] as List?)
?.whereNotNull()
.map((e) => (e as String).toNotificationEvent())
.toList(),
notificationType:
(json['NotificationType'] as String?)?.toNotificationType(),
);
}