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_str_value("filterQuery", self.filter_query)
        writer.write_bool_value("includeNestedFolders", self.include_nested_folders)
        writer.write_bool_value("isSupported", self.is_supported)
        writer.write_collection_of_primitive_values("sourceFolderIds", self.source_folder_ids)

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