toEnvironmentState method

EnvironmentState toEnvironmentState()

Implementation

EnvironmentState toEnvironmentState() {
  switch (this) {
    case 'READY_FOR_DEPLOYMENT':
      return EnvironmentState.readyForDeployment;
    case 'DEPLOYING':
      return EnvironmentState.deploying;
    case 'ROLLING_BACK':
      return EnvironmentState.rollingBack;
    case 'ROLLED_BACK':
      return EnvironmentState.rolledBack;
  }
  throw Exception('$this is not known in enum EnvironmentState');
}