Rights.parse constructor

Rights.parse(
  1. 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'),
  );
}