Integrity.parse constructor

Integrity.parse(
  1. XmlElement element
)

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

The element is an XML element containing the integrity information.

Returns the parsed Integrity object.

Implementation

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