toValue method

String toValue()

Implementation

String toValue() {
  switch (this) {
    case BackupStatus.inProgress:
      return 'IN_PROGRESS';
    case BackupStatus.ok:
      return 'OK';
    case BackupStatus.failed:
      return 'FAILED';
    case BackupStatus.deleting:
      return 'DELETING';
  }
}