CacheSecurityGroup.fromXml constructor

CacheSecurityGroup.fromXml(
  1. XmlElement elem
)

Implementation

factory CacheSecurityGroup.fromXml(_s.XmlElement elem) {
  return CacheSecurityGroup(
    arn: _s.extractXmlStringValue(elem, 'ARN'),
    cacheSecurityGroupName:
        _s.extractXmlStringValue(elem, 'CacheSecurityGroupName'),
    description: _s.extractXmlStringValue(elem, 'Description'),
    eC2SecurityGroups: _s.extractXmlChild(elem, 'EC2SecurityGroups')?.let(
        (elem) => elem
            .findElements('EC2SecurityGroup')
            .map((c) => EC2SecurityGroup.fromXml(c))
            .toList()),
    ownerId: _s.extractXmlStringValue(elem, 'OwnerId'),
  );
}