ClusterSubnetGroup.fromXml constructor

ClusterSubnetGroup.fromXml(
  1. XmlElement elem
)

Implementation

factory ClusterSubnetGroup.fromXml(_s.XmlElement elem) {
  return ClusterSubnetGroup(
    clusterSubnetGroupName:
        _s.extractXmlStringValue(elem, 'ClusterSubnetGroupName'),
    description: _s.extractXmlStringValue(elem, 'Description'),
    subnetGroupStatus: _s.extractXmlStringValue(elem, 'SubnetGroupStatus'),
    subnets: _s.extractXmlChild(elem, 'Subnets')?.let((elem) =>
        elem.findElements('Subnet').map((c) => Subnet.fromXml(c)).toList()),
    tags: _s.extractXmlChild(elem, 'Tags')?.let((elem) =>
        elem.findElements('Tag').map((c) => Tag.fromXml(c)).toList()),
    vpcId: _s.extractXmlStringValue(elem, 'VpcId'),
  );
}