_serializeSlot(node) {
        const slotName = node.attribs.name;
        if (slotName && slotName !== 'default') {
            const childNodes = this.treeAdapter.getChildNodes(node);
            const slots = this.slotMap.has(slotName)
                ? this.slotMap.get(slotName)
                : childNodes;
            slots && slots.forEach(this._serializeNode);
        } else {
            // Handling duplicate slots
            if (this.defaultSlotsInserted) {
                console.warn(
                    'Encountered duplicate Unnamed slots in the template - Skipping the node'
                );
                return;
            }
            const defaultSlots = this.slotMap.get('default');
            this.defaultSlotsInserted = true;
            defaultSlots && defaultSlots.forEach(this._serializeNode);
        }
    }
Serialize the slot nodes from the slot map

@param {object} node