toBackupState method
Implementation
BackupState toBackupState() {
switch (this) {
case 'CREATE_IN_PROGRESS':
return BackupState.createInProgress;
case 'READY':
return BackupState.ready;
case 'DELETED':
return BackupState.deleted;
case 'PENDING_DELETION':
return BackupState.pendingDeletion;
}
throw Exception('$this is not known in enum BackupState');
}