toScanStatus method

ScanStatus toScanStatus()

Implementation

ScanStatus toScanStatus() {
  switch (this) {
    case 'IN_PROGRESS':
      return ScanStatus.inProgress;
    case 'COMPLETE':
      return ScanStatus.complete;
    case 'FAILED':
      return ScanStatus.failed;
  }
  throw Exception('$this is not known in enum ScanStatus');
}