RssEnclosure.parse constructor
RssEnclosure.parse(
- XmlElement element
Implementation
factory RssEnclosure.parse(XmlElement element) {
var url = element.getAttribute('url');
var type = element.getAttribute('type');
var length = int.tryParse(element.getAttribute('length') ?? '0');
return RssEnclosure(url, type, length);
}