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_object_value("access", self.access)
        writer.write_collection_of_object_values("activities", self.activities)
        writer.write_object_value("create", self.create)
        writer.write_object_value("delete", self.delete)
        writer.write_object_value("edit", self.edit)
        writer.write_datetime_value("endDateTime", self.end_date_time)
        writer.write_object_value("incompleteData", self.incomplete_data)
        writer.write_bool_value("isTrending", self.is_trending)
        writer.write_object_value("move", self.move)
        writer.write_datetime_value("startDateTime", self.start_date_time)

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