toLabelingJobStatus method
Implementation
LabelingJobStatus toLabelingJobStatus() {
switch (this) {
case 'Initializing':
return LabelingJobStatus.initializing;
case 'InProgress':
return LabelingJobStatus.inProgress;
case 'Completed':
return LabelingJobStatus.completed;
case 'Failed':
return LabelingJobStatus.failed;
case 'Stopping':
return LabelingJobStatus.stopping;
case 'Stopped':
return LabelingJobStatus.stopped;
}
throw Exception('$this is not known in enum LabelingJobStatus');
}