GetBackupVaultNotificationsOutput.fromJson constructor

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

Implementation

factory GetBackupVaultNotificationsOutput.fromJson(
    Map<String, dynamic> json) {
  return GetBackupVaultNotificationsOutput(
    backupVaultArn: json['BackupVaultArn'] as String?,
    backupVaultEvents: (json['BackupVaultEvents'] as List?)
        ?.whereNotNull()
        .map((e) => (e as String).toBackupVaultEvent())
        .toList(),
    backupVaultName: json['BackupVaultName'] as String?,
    sNSTopicArn: json['SNSTopicArn'] as String?,
  );
}