toBackupStatus method

BackupStatus toBackupStatus()

Implementation

BackupStatus toBackupStatus() {
  switch (this) {
    case 'CREATING':
      return BackupStatus.creating;
    case 'DELETED':
      return BackupStatus.deleted;
    case 'AVAILABLE':
      return BackupStatus.available;
  }
  throw Exception('$this is not known in enum BackupStatus');
}