parse static method
Implementation
static Itemref? parse(XmlNode element, Map<String, String> prefixMap) {
String? idref = element.getAttribute("idref");
if (idref == null) {
return null;
}
bool notLinear = element.getAttribute("linear") == "no";
String propAttr = element.getAttribute("properties") ?? "";
List<String> properties = parseProperties(propAttr)
.mapNotNull((it) =>
resolveProperty(it, prefixMap, defaultVocab: DefaultVocab.itemref))
.toList();
return Itemref(idref, !notLinear, properties);
}