Community.parse constructor

Community.parse(
  1. XmlElement element
)

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

Implementation

factory Community.parse(XmlElement element) => Community(
      starRating: element
          .findElements('media:starRating')
          .map(StarRating.parse)
          .firstOrNull,
      statistics: element
          .findElements('media:statistics')
          .map(Statistics.parse)
          .firstOrNull,
      tags: element.findElements('media:tags').map(Tags.parse).firstOrNull,
    );