toPolicyUsageType method

PolicyUsageType toPolicyUsageType()

Implementation

PolicyUsageType toPolicyUsageType() {
  switch (this) {
    case 'PermissionsPolicy':
      return PolicyUsageType.permissionsPolicy;
    case 'PermissionsBoundary':
      return PolicyUsageType.permissionsBoundary;
  }
  throw Exception('$this is not known in enum PolicyUsageType');
}