toDeploymentStatus method

DeploymentStatus toDeploymentStatus()

Implementation

DeploymentStatus toDeploymentStatus() {
  switch (this) {
    case 'ACTIVE':
      return DeploymentStatus.active;
    case 'COMPLETED':
      return DeploymentStatus.completed;
    case 'CANCELED':
      return DeploymentStatus.canceled;
    case 'FAILED':
      return DeploymentStatus.failed;
    case 'INACTIVE':
      return DeploymentStatus.inactive;
  }
  throw Exception('$this is not known in enum DeploymentStatus');
}