toValue method

String toValue()

Implementation

String toValue() {
  switch (this) {
    case DeploymentStatus.created:
      return 'Created';
    case DeploymentStatus.queued:
      return 'Queued';
    case DeploymentStatus.inProgress:
      return 'InProgress';
    case DeploymentStatus.baking:
      return 'Baking';
    case DeploymentStatus.succeeded:
      return 'Succeeded';
    case DeploymentStatus.failed:
      return 'Failed';
    case DeploymentStatus.stopped:
      return 'Stopped';
    case DeploymentStatus.ready:
      return 'Ready';
  }
}