TargetGrant.fromXml constructor

TargetGrant.fromXml(
  1. XmlElement elem
)

Implementation

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