RssEnclosure.parse constructor

RssEnclosure.parse(
  1. 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);
}