def serialize(self,writer: SerializationWriter) -> None:
        """
        Serializes information the current object
        param writer: Serialization writer to use to serialize this model
        Returns: None
        """
        if writer is None:
            raise TypeError("writer cannot be null.")
        super().serialize(writer)
        writer.write_collection_of_object_values("assignments", self.assignments)
        writer.write_bool_value("azureRightsManagementServicesAllowed", self.azure_rights_management_services_allowed)
        writer.write_object_value("dataRecoveryCertificate", self.data_recovery_certificate)
        writer.write_enum_value("enforcementLevel", self.enforcement_level)
        writer.write_str_value("enterpriseDomain", self.enterprise_domain)
        writer.write_collection_of_object_values("enterpriseIPRanges", self.enterprise_i_p_ranges)
        writer.write_bool_value("enterpriseIPRangesAreAuthoritative", self.enterprise_i_p_ranges_are_authoritative)
        writer.write_collection_of_object_values("enterpriseInternalProxyServers", self.enterprise_internal_proxy_servers)
        writer.write_collection_of_object_values("enterpriseNetworkDomainNames", self.enterprise_network_domain_names)
        writer.write_collection_of_object_values("enterpriseProtectedDomainNames", self.enterprise_protected_domain_names)
        writer.write_collection_of_object_values("enterpriseProxiedDomains", self.enterprise_proxied_domains)
        writer.write_collection_of_object_values("enterpriseProxyServers", self.enterprise_proxy_servers)
        writer.write_bool_value("enterpriseProxyServersAreAuthoritative", self.enterprise_proxy_servers_are_authoritative)
        writer.write_collection_of_object_values("exemptAppLockerFiles", self.exempt_app_locker_files)
        writer.write_collection_of_object_values("exemptApps", self.exempt_apps)
        writer.write_bool_value("iconsVisible", self.icons_visible)
        writer.write_bool_value("indexingEncryptedStoresOrItemsBlocked", self.indexing_encrypted_stores_or_items_blocked)
        writer.write_bool_value("isAssigned", self.is_assigned)
        writer.write_collection_of_object_values("neutralDomainResources", self.neutral_domain_resources)
        writer.write_collection_of_object_values("protectedAppLockerFiles", self.protected_app_locker_files)
        writer.write_collection_of_object_values("protectedApps", self.protected_apps)
        writer.write_bool_value("protectionUnderLockConfigRequired", self.protection_under_lock_config_required)
        writer.write_bool_value("revokeOnUnenrollDisabled", self.revoke_on_unenroll_disabled)
        writer.write_uuid_value("rightsManagementServicesTemplateId", self.rights_management_services_template_id)
        writer.write_collection_of_object_values("smbAutoEncryptedFileExtensions", self.smb_auto_encrypted_file_extensions)

        Serializes information the current object
        param writer: Serialization writer to use to serialize this model
        Returns: None
        
msgraph/generated/models/windows_information_protection.py