parse static method

Community? parse(
  1. XmlElement? element
)

Implementation

static Community? parse(XmlElement? element) {
  if (element == null) {
    return null;
  }
  return Community(
    starRating:
        StarRating.parse(findElementOrNull(element, 'media:starRating')),
    statistics:
        Statistics.parse(findElementOrNull(element, 'media:statistics')),
    tags: Tags.parse(findElementOrNull(element, 'media:tags')),
  );
}