AvailabilityZone.fromXml constructor

AvailabilityZone.fromXml(
  1. XmlElement elem
)

Implementation

factory AvailabilityZone.fromXml(_s.XmlElement elem) {
  return AvailabilityZone(
    name: _s.extractXmlStringValue(elem, 'Name'),
    supportedPlatforms: _s.extractXmlChild(elem, 'SupportedPlatforms')?.let(
        (elem) => elem
            .findElements('SupportedPlatform')
            .map((c) => SupportedPlatform.fromXml(c))
            .toList()),
  );
}