toValue method

String toValue()

Implementation

String toValue() {
  switch (this) {
    case DeploymentStatus.pending:
      return 'Pending';
    case DeploymentStatus.preparing:
      return 'Preparing';
    case DeploymentStatus.inProgress:
      return 'InProgress';
    case DeploymentStatus.failed:
      return 'Failed';
    case DeploymentStatus.succeeded:
      return 'Succeeded';
    case DeploymentStatus.canceled:
      return 'Canceled';
  }
}