toApplicationStatus method

ApplicationStatus toApplicationStatus()

Implementation

ApplicationStatus toApplicationStatus() {
  switch (this) {
    case 'DELETING':
      return ApplicationStatus.deleting;
    case 'STARTING':
      return ApplicationStatus.starting;
    case 'STOPPING':
      return ApplicationStatus.stopping;
    case 'READY':
      return ApplicationStatus.ready;
    case 'RUNNING':
      return ApplicationStatus.running;
    case 'UPDATING':
      return ApplicationStatus.updating;
  }
  throw Exception('$this is not known in enum ApplicationStatus');
}