toValue method

String toValue()

Implementation

String toValue() {
  switch (this) {
    case JobStatus.inProgress:
      return 'IN_PROGRESS';
    case JobStatus.succeeded:
      return 'SUCCEEDED';
    case JobStatus.failed:
      return 'FAILED';
    case JobStatus.partialSuccess:
      return 'PARTIAL_SUCCESS';
  }
}