toValue method

String toValue()

Implementation

String toValue() {
  switch (this) {
    case DeploymentState.baking:
      return 'BAKING';
    case DeploymentState.validating:
      return 'VALIDATING';
    case DeploymentState.deploying:
      return 'DEPLOYING';
    case DeploymentState.complete:
      return 'COMPLETE';
    case DeploymentState.rollingBack:
      return 'ROLLING_BACK';
    case DeploymentState.rolledBack:
      return 'ROLLED_BACK';
  }
}