toEnvironmentStatus method

EnvironmentStatus toEnvironmentStatus()

Implementation

EnvironmentStatus toEnvironmentStatus() {
  switch (this) {
    case 'Aborting':
      return EnvironmentStatus.aborting;
    case 'Launching':
      return EnvironmentStatus.launching;
    case 'Updating':
      return EnvironmentStatus.updating;
    case 'LinkingFrom':
      return EnvironmentStatus.linkingFrom;
    case 'LinkingTo':
      return EnvironmentStatus.linkingTo;
    case 'Ready':
      return EnvironmentStatus.ready;
    case 'Terminating':
      return EnvironmentStatus.terminating;
    case 'Terminated':
      return EnvironmentStatus.terminated;
  }
  throw Exception('$this is not known in enum EnvironmentStatus');
}