toAssociationComplianceSeverity method

AssociationComplianceSeverity toAssociationComplianceSeverity()

Implementation

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