toPatchFilterKey method

PatchFilterKey toPatchFilterKey()

Implementation

PatchFilterKey toPatchFilterKey() {
  switch (this) {
    case 'ARCH':
      return PatchFilterKey.arch;
    case 'ADVISORY_ID':
      return PatchFilterKey.advisoryId;
    case 'BUGZILLA_ID':
      return PatchFilterKey.bugzillaId;
    case 'PATCH_SET':
      return PatchFilterKey.patchSet;
    case 'PRODUCT':
      return PatchFilterKey.product;
    case 'PRODUCT_FAMILY':
      return PatchFilterKey.productFamily;
    case 'CLASSIFICATION':
      return PatchFilterKey.classification;
    case 'CVE_ID':
      return PatchFilterKey.cveId;
    case 'EPOCH':
      return PatchFilterKey.epoch;
    case 'MSRC_SEVERITY':
      return PatchFilterKey.msrcSeverity;
    case 'NAME':
      return PatchFilterKey.name;
    case 'PATCH_ID':
      return PatchFilterKey.patchId;
    case 'SECTION':
      return PatchFilterKey.section;
    case 'PRIORITY':
      return PatchFilterKey.priority;
    case 'REPOSITORY':
      return PatchFilterKey.repository;
    case 'RELEASE':
      return PatchFilterKey.release;
    case 'SEVERITY':
      return PatchFilterKey.severity;
    case 'SECURITY':
      return PatchFilterKey.security;
    case 'VERSION':
      return PatchFilterKey.version;
  }
  throw Exception('$this is not known in enum PatchFilterKey');
}