toDataRepositoryTaskLifecycle method
Implementation
DataRepositoryTaskLifecycle toDataRepositoryTaskLifecycle() {
switch (this) {
case 'PENDING':
return DataRepositoryTaskLifecycle.pending;
case 'EXECUTING':
return DataRepositoryTaskLifecycle.executing;
case 'FAILED':
return DataRepositoryTaskLifecycle.failed;
case 'SUCCEEDED':
return DataRepositoryTaskLifecycle.succeeded;
case 'CANCELED':
return DataRepositoryTaskLifecycle.canceled;
case 'CANCELING':
return DataRepositoryTaskLifecycle.canceling;
}
throw Exception('$this is not known in enum DataRepositoryTaskLifecycle');
}