toValue method

String toValue()

Implementation

String toValue() {
  switch (this) {
    case DeploymentStatus.active:
      return 'ACTIVE';
    case DeploymentStatus.completed:
      return 'COMPLETED';
    case DeploymentStatus.canceled:
      return 'CANCELED';
    case DeploymentStatus.failed:
      return 'FAILED';
    case DeploymentStatus.inactive:
      return 'INACTIVE';
  }
}