toValue method

String toValue()

Implementation

String toValue() {
  switch (this) {
    case ScanStatus.inProgress:
      return 'IN_PROGRESS';
    case ScanStatus.complete:
      return 'COMPLETE';
    case ScanStatus.failed:
      return 'FAILED';
  }
}