toValue method

String toValue()

Implementation

String toValue() {
  switch (this) {
    case JobStatus.inProgress:
      return 'IN_PROGRESS';
    case JobStatus.canceled:
      return 'CANCELED';
    case JobStatus.completed:
      return 'COMPLETED';
    case JobStatus.deletionInProgress:
      return 'DELETION_IN_PROGRESS';
  }
}