toEffectiveDeploymentExecutionStatus method

EffectiveDeploymentExecutionStatus toEffectiveDeploymentExecutionStatus()

Implementation

EffectiveDeploymentExecutionStatus toEffectiveDeploymentExecutionStatus() {
  switch (this) {
    case 'IN_PROGRESS':
      return EffectiveDeploymentExecutionStatus.inProgress;
    case 'QUEUED':
      return EffectiveDeploymentExecutionStatus.queued;
    case 'FAILED':
      return EffectiveDeploymentExecutionStatus.failed;
    case 'COMPLETED':
      return EffectiveDeploymentExecutionStatus.completed;
    case 'TIMED_OUT':
      return EffectiveDeploymentExecutionStatus.timedOut;
    case 'CANCELED':
      return EffectiveDeploymentExecutionStatus.canceled;
    case 'REJECTED':
      return EffectiveDeploymentExecutionStatus.rejected;
  }
  throw Exception(
      '$this is not known in enum EffectiveDeploymentExecutionStatus');
}