Grant.fromXml constructor

Grant.fromXml(
  1. XmlElement elem
)

Implementation

factory Grant.fromXml(_s.XmlElement elem) {
  return Grant(
    grantee:
        _s.extractXmlChild(elem, 'Grantee')?.let((e) => Grantee.fromXml(e)),
    permission: _s.extractXmlStringValue(elem, 'Permission')?.toPermission(),
  );
}