toIpSetFormat method

IpSetFormat toIpSetFormat()

Implementation

IpSetFormat toIpSetFormat() {
  switch (this) {
    case 'TXT':
      return IpSetFormat.txt;
    case 'STIX':
      return IpSetFormat.stix;
    case 'OTX_CSV':
      return IpSetFormat.otxCsv;
    case 'ALIEN_VAULT':
      return IpSetFormat.alienVault;
    case 'PROOF_POINT':
      return IpSetFormat.proofPoint;
    case 'FIRE_EYE':
      return IpSetFormat.fireEye;
  }
  throw Exception('$this is not known in enum IpSetFormat');
}