Restriction.parse constructor

Restriction.parse(
  1. XmlElement element
)

Implementation

factory Restriction.parse(XmlElement element) {
  return Restriction(
    relationship: element.getAttribute('relationship'),
    type: element.getAttribute('type'),
    value: element.text,
  );
}