# toXML method

XMLNode toXML()

Convert the thumbnail to its XML representation.

## Implementation

    XMLNode toXML() {
      return XMLNode.xmlns(
        tag: 'thumbnail',
        xmlns: jingleContentThumbnailXmlns,
        attributes: {
          'uri': uri.toString(),
          if (mediaType != null) 'media-type': mediaType!,
          if (width != null) 'width': width.toString(),
          if (height != null) 'height': height.toString(),
        },
      );
    }