toValue method

String toValue()

Implementation

String toValue() {
  switch (this) {
    case ThreatIntelIndicatorType.domain:
      return 'DOMAIN';
    case ThreatIntelIndicatorType.emailAddress:
      return 'EMAIL_ADDRESS';
    case ThreatIntelIndicatorType.hashMd5:
      return 'HASH_MD5';
    case ThreatIntelIndicatorType.hashSha1:
      return 'HASH_SHA1';
    case ThreatIntelIndicatorType.hashSha256:
      return 'HASH_SHA256';
    case ThreatIntelIndicatorType.hashSha512:
      return 'HASH_SHA512';
    case ThreatIntelIndicatorType.ipv4Address:
      return 'IPV4_ADDRESS';
    case ThreatIntelIndicatorType.ipv6Address:
      return 'IPV6_ADDRESS';
    case ThreatIntelIndicatorType.mutex:
      return 'MUTEX';
    case ThreatIntelIndicatorType.process:
      return 'PROCESS';
    case ThreatIntelIndicatorType.url:
      return 'URL';
  }
}