Collection.fromXml constructor
Collection.fromXml(
- XmlElement root
Parses a Collection from an XML root element.
Implementation
factory Collection.fromXml(XmlElement root) {
final items =
root.findElements('item').map(CollectionItem.fromXml).toList();
return Collection(items: items);
}