AtomSource.parse constructor
AtomSource.parse(
- XmlElement element
Factory method to parse an XmlElement and create an AtomSource object from it.
The element is an XML element containing the source information.
Returns the parsed AtomSource object.
Implementation
factory AtomSource.parse(XmlElement element) {
return AtomSource(
id: element.findElements('id').firstOrNull?.innerText,
title: element.findElements('title').firstOrNull?.innerText,
updated: element.findElements('updated').firstOrNull?.innerText,
);
}