parse static method

RssImage? parse(
  1. XmlElement? element
)

Implementation

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

  final title = findElementOrNull(element, 'title')?.innerText;
  final url = findElementOrNull(element, 'url')?.innerText;
  final link = findElementOrNull(element, 'link')?.innerText;

  return RssImage(title, url, link);
}