toValue method

String toValue()

Implementation

String toValue() {
  switch (this) {
    case QueryStatus.scheduled:
      return 'Scheduled';
    case QueryStatus.running:
      return 'Running';
    case QueryStatus.complete:
      return 'Complete';
    case QueryStatus.failed:
      return 'Failed';
    case QueryStatus.cancelled:
      return 'Cancelled';
  }
}