parse static method

AtomSource? parse(
  1. XmlElement? element
)

Implementation

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

  final id = findElementOrNull(element, 'id')?.innerText;
  final title = findElementOrNull(element, 'title')?.innerText;
  final updated = findElementOrNull(element, 'updated')?.innerText;

  return AtomSource(id, title, updated);
}