LoggingEnabled.fromXml constructor

LoggingEnabled.fromXml(
  1. XmlElement elem
)

Implementation

factory LoggingEnabled.fromXml(_s.XmlElement elem) {
  return LoggingEnabled(
    targetBucket: _s.extractXmlStringValue(elem, 'TargetBucket')!,
    targetPrefix: _s.extractXmlStringValue(elem, 'TargetPrefix')!,
    targetGrants: _s.extractXmlChild(elem, 'TargetGrants')?.let((elem) => elem
        .findElements('Grant')
        .map((c) => TargetGrant.fromXml(c))
        .toList()),
  );
}