AccessPoint.fromXml constructor

AccessPoint.fromXml(
  1. XmlElement elem
)

Implementation

factory AccessPoint.fromXml(_s.XmlElement elem) {
  return AccessPoint(
    bucket: _s.extractXmlStringValue(elem, 'Bucket')!,
    name: _s.extractXmlStringValue(elem, 'Name')!,
    networkOrigin:
        _s.extractXmlStringValue(elem, 'NetworkOrigin')!.toNetworkOrigin(),
    accessPointArn: _s.extractXmlStringValue(elem, 'AccessPointArn'),
    vpcConfiguration: _s
        .extractXmlChild(elem, 'VpcConfiguration')
        ?.let((e) => VpcConfiguration.fromXml(e)),
  );
}