Group.parse constructor
Group.parse(
- XmlElement element
Implementation
factory Group.parse(XmlElement element) {
return Group(
contents: element
.findElements('media:content')
.map((e) => Content.parse(e))
.toList(),
credits: element
.findElements('media:credit')
.map((e) => Credit.parse(e))
.toList(),
category: element
.findElements('media:category')
.map((e) => Category.parse(e))
.firstOrNull,
rating: element
.findElements('media:rating')
.map((e) => Rating.parse(e))
.firstOrNull,
);
}