CacheSubnetGroup.fromXml constructor

CacheSubnetGroup.fromXml(
  1. XmlElement elem
)

Implementation

factory CacheSubnetGroup.fromXml(_s.XmlElement elem) {
  return CacheSubnetGroup(
    arn: _s.extractXmlStringValue(elem, 'ARN'),
    cacheSubnetGroupDescription:
        _s.extractXmlStringValue(elem, 'CacheSubnetGroupDescription'),
    cacheSubnetGroupName:
        _s.extractXmlStringValue(elem, 'CacheSubnetGroupName'),
    subnets: _s.extractXmlChild(elem, 'Subnets')?.let((elem) =>
        elem.findElements('Subnet').map((c) => Subnet.fromXml(c)).toList()),
    vpcId: _s.extractXmlStringValue(elem, 'VpcId'),
  );
}