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_int_value("cleanDeviceCount", self.clean_device_count)
        writer.write_int_value("criticalFailuresDeviceCount", self.critical_failures_device_count)
        writer.write_int_value("inactiveThreatAgentDeviceCount", self.inactive_threat_agent_device_count)
        writer.write_str_value("@odata.type", self.odata_type)
        writer.write_int_value("pendingFullScanDeviceCount", self.pending_full_scan_device_count)
        writer.write_int_value("pendingManualStepsDeviceCount", self.pending_manual_steps_device_count)
        writer.write_int_value("pendingOfflineScanDeviceCount", self.pending_offline_scan_device_count)
        writer.write_int_value("pendingQuickScanDeviceCount", self.pending_quick_scan_device_count)
        writer.write_int_value("pendingRestartDeviceCount", self.pending_restart_device_count)
        writer.write_int_value("pendingSignatureUpdateDeviceCount", self.pending_signature_update_device_count)
        writer.write_int_value("totalReportedDeviceCount", self.total_reported_device_count)
        writer.write_int_value("unknownStateThreatAgentDeviceCount", self.unknown_state_threat_agent_device_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/device_protection_overview.py