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("deviceId", self.device_id)
        writer.write_str_value("deviceName", self.device_name)
        writer.write_str_value("devicePageLink", self.device_page_link)
        writer.write_str_value("deviceSubType", self.device_sub_type)
        writer.write_str_value("deviceType", self.device_type)
        writer.write_enum_value("importance", self.importance)
        writer.write_object_value("ioTHub", self.io_t_hub)
        writer.write_str_value("ioTSecurityAgentId", self.io_t_security_agent_id)
        writer.write_object_value("ipAddress", self.ip_address)
        writer.write_bool_value("isAuthorized", self.is_authorized)
        writer.write_bool_value("isProgramming", self.is_programming)
        writer.write_bool_value("isScanner", self.is_scanner)
        writer.write_str_value("macAddress", self.mac_address)
        writer.write_str_value("manufacturer", self.manufacturer)
        writer.write_str_value("model", self.model)
        writer.write_collection_of_object_values("nics", self.nics)
        writer.write_str_value("operatingSystem", self.operating_system)
        writer.write_collection_of_primitive_values("owners", self.owners)
        writer.write_collection_of_primitive_values("protocols", self.protocols)
        writer.write_str_value("purdueLayer", self.purdue_layer)
        writer.write_str_value("sensor", self.sensor)
        writer.write_str_value("serialNumber", self.serial_number)
        writer.write_str_value("site", self.site)
        writer.write_str_value("source", self.source)
        writer.write_object_value("sourceRef", self.source_ref)
        writer.write_str_value("zone", self.zone)

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