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.")
        writer.write_collection_of_object_values("malwareCategorySummary", self.malware_category_summary)
        writer.write_int_value("malwareDetectedDeviceCount", self.malware_detected_device_count)
        writer.write_collection_of_object_values("malwareExecutionStateSummary", self.malware_execution_state_summary)
        writer.write_collection_of_object_values("malwareNameSummary", self.malware_name_summary)
        writer.write_collection_of_object_values("malwareSeveritySummary", self.malware_severity_summary)
        writer.write_collection_of_object_values("malwareStateSummary", self.malware_state_summary)
        writer.write_str_value("@odata.type", self.odata_type)
        writer.write_collection_of_object_values("osVersionsSummary", self.os_versions_summary)
        writer.write_int_value("totalDistinctMalwareCount", self.total_distinct_malware_count)
        writer.write_int_value("totalMalwareCount", self.total_malware_count)
        writer.write_additional_data_value(self.additional_data)

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