parse static method

RssSource? parse(
  1. XmlElement? element
)

Implementation

static RssSource? parse(XmlElement? element) {
  if (element == null) {
    return null;
  }
  final url = element.getAttribute('url');
  final value = element.text;

  return RssSource(url, value);
}