toBackupStatus method
Implementation
BackupStatus toBackupStatus() {
switch (this) {
case 'IN_PROGRESS':
return BackupStatus.inProgress;
case 'OK':
return BackupStatus.ok;
case 'FAILED':
return BackupStatus.failed;
case 'DELETING':
return BackupStatus.deleting;
}
throw Exception('$this is not known in enum BackupStatus');
}