Subnet.fromXml constructor

Subnet.fromXml(
  1. XmlElement elem
)

Implementation

factory Subnet.fromXml(_s.XmlElement elem) {
  return Subnet(
    subnetAvailabilityZone: _s
        .extractXmlChild(elem, 'SubnetAvailabilityZone')
        ?.let((e) => AvailabilityZone.fromXml(e)),
    subnetIdentifier: _s.extractXmlStringValue(elem, 'SubnetIdentifier'),
    subnetOutpost: _s
        .extractXmlChild(elem, 'SubnetOutpost')
        ?.let((e) => Outpost.fromXml(e)),
    subnetStatus: _s.extractXmlStringValue(elem, 'SubnetStatus'),
  );
}