# JingleContentThumbnail.fromXML constructor

JingleContentThumbnail.fromXML(

1. XMLNode thumbnail

)

## Implementation

    factory JingleContentThumbnail.fromXML(XMLNode thumbnail) {
      assert(
        thumbnail.tag == 'thumbnail',
        'thumbnail must be Jingle Content Thumbnail',
      );
      assert(
        thumbnail.attributes['xmlns'] == jingleContentThumbnailXmlns,
        'thumbnail must be Jingle Content Thumbnail',
      );

      return JingleContentThumbnail(
        Uri.parse(thumbnail.attributes['uri']! as String),
        thumbnail.attributes['media-type'] as String?,
        (thumbnail.attributes['width'] as String?)?.toInt(),
        (thumbnail.attributes['height'] as String?)?.toInt(),
      );
    }