toBackupType method

BackupType toBackupType()

Implementation

BackupType toBackupType() {
  switch (this) {
    case 'USER':
      return BackupType.user;
    case 'SYSTEM':
      return BackupType.system;
    case 'AWS_BACKUP':
      return BackupType.awsBackup;
  }
  throw Exception('$this is not known in enum BackupType');
}