Group.parse constructor

Group.parse(
  1. XmlElement element
)

Parse constructor for the Group class, used when 'parsing' a feed

Implementation

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