toEnvironmentStatus method

EnvironmentStatus toEnvironmentStatus()

Implementation

EnvironmentStatus toEnvironmentStatus() {
  switch (this) {
    case 'error':
      return EnvironmentStatus.error;
    case 'creating':
      return EnvironmentStatus.creating;
    case 'connecting':
      return EnvironmentStatus.connecting;
    case 'ready':
      return EnvironmentStatus.ready;
    case 'stopping':
      return EnvironmentStatus.stopping;
    case 'stopped':
      return EnvironmentStatus.stopped;
    case 'deleting':
      return EnvironmentStatus.deleting;
  }
  throw Exception('$this is not known in enum EnvironmentStatus');
}