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