toValue method

String toValue()

Implementation

String toValue() {
  switch (this) {
    case Status.failed:
      return 'FAILED';
    case Status.inProgress:
      return 'IN_PROGRESS';
    case Status.pending:
      return 'PENDING';
    case Status.completed:
      return 'COMPLETED';
    case Status.updatedOptimizing:
      return 'UPDATED_OPTIMIZING';
  }
}