toAlgorithmStatus method
Implementation
AlgorithmStatus toAlgorithmStatus() {
switch (this) {
case 'Pending':
return AlgorithmStatus.pending;
case 'InProgress':
return AlgorithmStatus.inProgress;
case 'Completed':
return AlgorithmStatus.completed;
case 'Failed':
return AlgorithmStatus.failed;
case 'Deleting':
return AlgorithmStatus.deleting;
}
throw Exception('$this is not known in enum AlgorithmStatus');
}