PeerLink.parse constructor

PeerLink.parse(
  1. XmlElement element
)

Implementation

factory PeerLink.parse(XmlElement element) {
  return PeerLink(
    type: element.getAttribute('type'),
    href: element.getAttribute('href'),
    value: element.innerText,
  );
}