AvailabilityZone.fromXml constructor

AvailabilityZone.fromXml(
  1. XmlElement elem
)

Implementation

factory AvailabilityZone.fromXml(_s.XmlElement elem) {
  return AvailabilityZone(
    loadBalancerAddresses: _s
        .extractXmlChild(elem, 'LoadBalancerAddresses')
        ?.let((elem) => elem
            .findElements('member')
            .map((c) => LoadBalancerAddress.fromXml(c))
            .toList()),
    outpostId: _s.extractXmlStringValue(elem, 'OutpostId'),
    subnetId: _s.extractXmlStringValue(elem, 'SubnetId'),
    zoneName: _s.extractXmlStringValue(elem, 'ZoneName'),
  );
}