parse static method

Restriction? parse(
  1. XmlElement? element
)

Implementation

static Restriction? parse(XmlElement? element) {
  if (element == null) {
    return null;
  }

  return Restriction(
    relationship: element.getAttribute('relationship'),
    type: element.getAttribute('type'),
    value: element.innerText,
  );
}