parse static method

Group? parse(
  1. XmlElement? element
)

Implementation

static Group? parse(XmlElement? element) {
  if (element == null) {
    return null;
  }

  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: Category.parse(findElementOrNull(element, 'media:category')),
    rating: Rating.parse(findElementOrNull(element, 'media:rating')),
  );
}