NotificationConfig.fromJson constructor

NotificationConfig.fromJson(
  1. Map<String, dynamic> json
)

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(),
  );
}