toScanBy method

ScanBy toScanBy()

Implementation

ScanBy toScanBy() {
  switch (this) {
    case 'TimestampDescending':
      return ScanBy.timestampDescending;
    case 'TimestampAscending':
      return ScanBy.timestampAscending;
  }
  throw Exception('$this is not known in enum ScanBy');
}