parse static method

AtomGenerator? parse(
  1. XmlElement? element
)

Implementation

static AtomGenerator? parse(XmlElement? element) {
  if (element == null) {
    return null;
  }
  final uri = element.getAttribute('uri');
  final version = element.getAttribute('version');
  final value = element.text;
  return AtomGenerator(uri, version, value);
}