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("authorities", self.authorities)
        writer.write_collection_of_object_values("categories", self.categories)
        writer.write_collection_of_object_values("citations", self.citations)
        writer.write_collection_of_object_values("departments", self.departments)
        writer.write_collection_of_object_values("filePlanReferences", self.file_plan_references)
        writer.write_collection_of_object_values("retentionLabels", self.retention_labels)

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