toValue method
Implementation
String toValue() {
switch (this) {
case DataRepositoryTaskLifecycle.pending:
return 'PENDING';
case DataRepositoryTaskLifecycle.executing:
return 'EXECUTING';
case DataRepositoryTaskLifecycle.failed:
return 'FAILED';
case DataRepositoryTaskLifecycle.succeeded:
return 'SUCCEEDED';
case DataRepositoryTaskLifecycle.canceled:
return 'CANCELED';
case DataRepositoryTaskLifecycle.canceling:
return 'CANCELING';
}
}