toNodeUpdateStatus method

NodeUpdateStatus toNodeUpdateStatus()

Implementation

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