toNamespaceType method

NamespaceType toNamespaceType()

Implementation

NamespaceType toNamespaceType() {
  switch (this) {
    case 'DNS_PUBLIC':
      return NamespaceType.dnsPublic;
    case 'DNS_PRIVATE':
      return NamespaceType.dnsPrivate;
    case 'HTTP':
      return NamespaceType.http;
  }
  throw Exception('$this is not known in enum NamespaceType');
}