toQueryStatus method
Implementation
QueryStatus toQueryStatus() {
switch (this) {
case 'Scheduled':
return QueryStatus.scheduled;
case 'Running':
return QueryStatus.running;
case 'Complete':
return QueryStatus.complete;
case 'Failed':
return QueryStatus.failed;
case 'Cancelled':
return QueryStatus.cancelled;
}
throw Exception('$this is not known in enum QueryStatus');
}