toPatchComplianceLevel method

PatchComplianceLevel toPatchComplianceLevel()

Implementation

PatchComplianceLevel toPatchComplianceLevel() {
  switch (this) {
    case 'CRITICAL':
      return PatchComplianceLevel.critical;
    case 'HIGH':
      return PatchComplianceLevel.high;
    case 'MEDIUM':
      return PatchComplianceLevel.medium;
    case 'LOW':
      return PatchComplianceLevel.low;
    case 'INFORMATIONAL':
      return PatchComplianceLevel.informational;
    case 'UNSPECIFIED':
      return PatchComplianceLevel.unspecified;
  }
  throw Exception('$this is not known in enum PatchComplianceLevel');
}