# toXML method

XMLNode toXML()

## Implementation

    XMLNode toXML() {
      return XMLNode.xmlns(
        tag: 'pack',
        xmlns: stickersXmlns,
        children: [
          // Pack metadata
          XMLNode(
            tag: 'name',
            text: name,
          ),
          XMLNode(
            tag: 'summary',
            text: summary,
          ),
          constructHashElement(
            hashAlgorithm,
            hashValue,
          ),

          ...restricted ? [XMLNode(tag: 'restricted')] : [],

          // Stickers
          ...stickers.map((sticker) => sticker.toPubSubXML()),
        ],
      );
    }