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("driveInclusionRules", self.drive_inclusion_rules)
        writer.write_collection_of_object_values("driveProtectionUnits", self.drive_protection_units)
        writer.write_collection_of_object_values("driveProtectionUnitsBulkAdditionJobs", self.drive_protection_units_bulk_addition_jobs)
        writer.write_collection_of_object_values("exchangeProtectionPolicies", self.exchange_protection_policies)
        writer.write_collection_of_object_values("exchangeRestoreSessions", self.exchange_restore_sessions)
        writer.write_collection_of_object_values("mailboxInclusionRules", self.mailbox_inclusion_rules)
        writer.write_collection_of_object_values("mailboxProtectionUnits", self.mailbox_protection_units)
        writer.write_collection_of_object_values("mailboxProtectionUnitsBulkAdditionJobs", self.mailbox_protection_units_bulk_addition_jobs)
        writer.write_collection_of_object_values("oneDriveForBusinessProtectionPolicies", self.one_drive_for_business_protection_policies)
        writer.write_collection_of_object_values("oneDriveForBusinessRestoreSessions", self.one_drive_for_business_restore_sessions)
        writer.write_collection_of_object_values("protectionPolicies", self.protection_policies)
        writer.write_collection_of_object_values("protectionUnits", self.protection_units)
        writer.write_collection_of_object_values("restorePoints", self.restore_points)
        writer.write_collection_of_object_values("restoreSessions", self.restore_sessions)
        writer.write_collection_of_object_values("serviceApps", self.service_apps)
        writer.write_object_value("serviceStatus", self.service_status)
        writer.write_collection_of_object_values("sharePointProtectionPolicies", self.share_point_protection_policies)
        writer.write_collection_of_object_values("sharePointRestoreSessions", self.share_point_restore_sessions)
        writer.write_collection_of_object_values("siteInclusionRules", self.site_inclusion_rules)
        writer.write_collection_of_object_values("siteProtectionUnits", self.site_protection_units)
        writer.write_collection_of_object_values("siteProtectionUnitsBulkAdditionJobs", self.site_protection_units_bulk_addition_jobs)

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