toValue method

String toValue()

Implementation

String toValue() {
  switch (this) {
    case DeploymentStatus.pendingUpdate:
      return 'PENDING_UPDATE';
    case DeploymentStatus.inProgress:
      return 'IN_PROGRESS';
    case DeploymentStatus.completed:
      return 'COMPLETED';
    case DeploymentStatus.notEligible:
      return 'NOT_ELIGIBLE';
    case DeploymentStatus.eligible:
      return 'ELIGIBLE';
  }
}