toJobExecutionFailureType method
Implementation
JobExecutionFailureType toJobExecutionFailureType() {
switch (this) {
case 'FAILED':
return JobExecutionFailureType.failed;
case 'REJECTED':
return JobExecutionFailureType.rejected;
case 'TIMED_OUT':
return JobExecutionFailureType.timedOut;
case 'ALL':
return JobExecutionFailureType.all;
}
throw Exception('$this is not known in enum JobExecutionFailureType');
}