toProtectionGroupPattern method

ProtectionGroupPattern toProtectionGroupPattern()

Implementation

ProtectionGroupPattern toProtectionGroupPattern() {
  switch (this) {
    case 'ALL':
      return ProtectionGroupPattern.all;
    case 'ARBITRARY':
      return ProtectionGroupPattern.arbitrary;
    case 'BY_RESOURCE_TYPE':
      return ProtectionGroupPattern.byResourceType;
  }
  throw Exception('$this is not known in enum ProtectionGroupPattern');
}