toQueryExecutionState method
Implementation
QueryExecutionState toQueryExecutionState() {
switch (this) {
case 'QUEUED':
return QueryExecutionState.queued;
case 'RUNNING':
return QueryExecutionState.running;
case 'SUCCEEDED':
return QueryExecutionState.succeeded;
case 'FAILED':
return QueryExecutionState.failed;
case 'CANCELLED':
return QueryExecutionState.cancelled;
}
throw Exception('$this is not known in enum QueryExecutionState');
}