toValue method

String toValue()

Implementation

String toValue() {
  switch (this) {
    case JobStatus.created:
      return 'CREATED';
    case JobStatus.processing:
      return 'PROCESSING';
    case JobStatus.completed:
      return 'COMPLETED';
    case JobStatus.failed:
      return 'FAILED';
  }
}