parse static method

AtomSource? parse(
  1. XmlElement? element
)

Implementation

static AtomSource? parse(XmlElement? element) {
  if (element == null) {
    return null;
  }
  final id = findElementOrNull(element, 'id')?.text;
  final title = findElementOrNull(element, 'title')?.text;
  final updated = findElementOrNull(element, 'updated')?.text;
  return AtomSource(id, title, updated);
}