toUpdateActionStatus method

UpdateActionStatus toUpdateActionStatus()

Implementation

UpdateActionStatus toUpdateActionStatus() {
  switch (this) {
    case 'not-applied':
      return UpdateActionStatus.notApplied;
    case 'waiting-to-start':
      return UpdateActionStatus.waitingToStart;
    case 'in-progress':
      return UpdateActionStatus.inProgress;
    case 'stopping':
      return UpdateActionStatus.stopping;
    case 'stopped':
      return UpdateActionStatus.stopped;
    case 'complete':
      return UpdateActionStatus.complete;
    case 'scheduling':
      return UpdateActionStatus.scheduling;
    case 'scheduled':
      return UpdateActionStatus.scheduled;
    case 'not-applicable':
      return UpdateActionStatus.notApplicable;
  }
  throw Exception('$this is not known in enum UpdateActionStatus');
}