Title.parse constructor

Title.parse(
  1. XmlElement element
)

Factory method to parse an XmlElement and create a Title object from it.

The element is an XML element containing the title information.

Returns the parsed Title object.

Implementation

factory Title.parse(XmlElement element) {
  return Title(
    type: element.getAttribute('type'),
    value: element.innerText,
  );
}