AtomPerson.parse constructor

AtomPerson.parse(
  1. XmlElement element
)

Implementation

factory AtomPerson.parse(XmlElement element) {
  final name = findElementOrNull(element, 'name')?.innerText;
  final uri = findElementOrNull(element, 'uri')?.innerText;
  final email = findElementOrNull(element, 'email')?.innerText;
  return AtomPerson(name, uri, email);
}