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