toSubResourceType method

SubResourceType toSubResourceType()

Implementation

SubResourceType toSubResourceType() {
  switch (this) {
    case 'IP':
      return SubResourceType.ip;
    case 'URL':
      return SubResourceType.url;
  }
  throw Exception('$this is not known in enum SubResourceType');
}