toRestoreJobStatus method

RestoreJobStatus toRestoreJobStatus()

Implementation

RestoreJobStatus toRestoreJobStatus() {
  switch (this) {
    case 'PENDING':
      return RestoreJobStatus.pending;
    case 'RUNNING':
      return RestoreJobStatus.running;
    case 'COMPLETED':
      return RestoreJobStatus.completed;
    case 'ABORTED':
      return RestoreJobStatus.aborted;
    case 'FAILED':
      return RestoreJobStatus.failed;
  }
  throw Exception('$this is not known in enum RestoreJobStatus');
}