parse static method

RssImage? parse(
  1. XmlElement? element
)

Implementation

static RssImage? parse(XmlElement? element) {
  if (element == null) {
    return null;
  }
  final title = findElementOrNull(element, 'title')?.text;
  final url = findElementOrNull(element, 'url')?.text;
  final link = findElementOrNull(element, 'link')?.text;

  return RssImage(title, url, link);
}