parse static method

PeerLink? parse(
  1. XmlElement? element
)

Implementation

static PeerLink? parse(XmlElement? element) {
  if (element == null) {
    return null;
  }
  return PeerLink(
    type: element.getAttribute('type'),
    href: element.getAttribute('href'),
    value: element.text,
  );
}