Rights.parse constructor
Rights.parse(
- XmlElement element
Factory method to parse an XmlElement
and create a Rights object from it.
The element
is an XML element containing the rights information.
Returns the parsed Rights object.
Implementation
factory Rights.parse(XmlElement element) {
return Rights(
status: element.getAttribute('status'),
);
}