toDesiredStatus method

DesiredStatus toDesiredStatus()

Implementation

DesiredStatus toDesiredStatus() {
  switch (this) {
    case 'RUNNING':
      return DesiredStatus.running;
    case 'PENDING':
      return DesiredStatus.pending;
    case 'STOPPED':
      return DesiredStatus.stopped;
  }
  throw Exception('$this is not known in enum DesiredStatus');
}