Grantee.fromXml constructor

Grantee.fromXml(
  1. XmlElement elem
)

Implementation

factory Grantee.fromXml(_s.XmlElement elem) {
  return Grantee(
    type: _s.extractXmlStringAttribute(elem, 'xsi:type')!.toType(),
    displayName: _s.extractXmlStringValue(elem, 'DisplayName'),
    emailAddress: _s.extractXmlStringValue(elem, 'EmailAddress'),
    id: _s.extractXmlStringValue(elem, 'ID'),
    uri: _s.extractXmlStringValue(elem, 'URI'),
  );
}