toBackupVaultEvent method
Implementation
BackupVaultEvent toBackupVaultEvent() {
switch (this) {
case 'BACKUP_JOB_STARTED':
return BackupVaultEvent.backupJobStarted;
case 'BACKUP_JOB_COMPLETED':
return BackupVaultEvent.backupJobCompleted;
case 'BACKUP_JOB_SUCCESSFUL':
return BackupVaultEvent.backupJobSuccessful;
case 'BACKUP_JOB_FAILED':
return BackupVaultEvent.backupJobFailed;
case 'BACKUP_JOB_EXPIRED':
return BackupVaultEvent.backupJobExpired;
case 'RESTORE_JOB_STARTED':
return BackupVaultEvent.restoreJobStarted;
case 'RESTORE_JOB_COMPLETED':
return BackupVaultEvent.restoreJobCompleted;
case 'RESTORE_JOB_SUCCESSFUL':
return BackupVaultEvent.restoreJobSuccessful;
case 'RESTORE_JOB_FAILED':
return BackupVaultEvent.restoreJobFailed;
case 'COPY_JOB_STARTED':
return BackupVaultEvent.copyJobStarted;
case 'COPY_JOB_SUCCESSFUL':
return BackupVaultEvent.copyJobSuccessful;
case 'COPY_JOB_FAILED':
return BackupVaultEvent.copyJobFailed;
case 'RECOVERY_POINT_MODIFIED':
return BackupVaultEvent.recoveryPointModified;
case 'BACKUP_PLAN_CREATED':
return BackupVaultEvent.backupPlanCreated;
case 'BACKUP_PLAN_MODIFIED':
return BackupVaultEvent.backupPlanModified;
}
throw Exception('$this is not known in enum BackupVaultEvent');
}