GetAccessPointResult.fromXml constructor

GetAccessPointResult.fromXml(
  1. XmlElement elem
)

Implementation

factory GetAccessPointResult.fromXml(_s.XmlElement elem) {
  return GetAccessPointResult(
    bucket: _s.extractXmlStringValue(elem, 'Bucket'),
    creationDate: _s.extractXmlDateTimeValue(elem, 'CreationDate'),
    name: _s.extractXmlStringValue(elem, 'Name'),
    networkOrigin:
        _s.extractXmlStringValue(elem, 'NetworkOrigin')?.toNetworkOrigin(),
    publicAccessBlockConfiguration: _s
        .extractXmlChild(elem, 'PublicAccessBlockConfiguration')
        ?.let((e) => PublicAccessBlockConfiguration.fromXml(e)),
    vpcConfiguration: _s
        .extractXmlChild(elem, 'VpcConfiguration')
        ?.let((e) => VpcConfiguration.fromXml(e)),
  );
}