DBSecurityGroup.fromXml constructor
DBSecurityGroup.fromXml(
- XmlElement elem
Implementation
factory DBSecurityGroup.fromXml(_s.XmlElement elem) {
return DBSecurityGroup(
dBSecurityGroupArn: _s.extractXmlStringValue(elem, 'DBSecurityGroupArn'),
dBSecurityGroupDescription:
_s.extractXmlStringValue(elem, 'DBSecurityGroupDescription'),
dBSecurityGroupName:
_s.extractXmlStringValue(elem, 'DBSecurityGroupName'),
eC2SecurityGroups: _s.extractXmlChild(elem, 'EC2SecurityGroups')?.let(
(elem) => elem
.findElements('EC2SecurityGroup')
.map((c) => EC2SecurityGroup.fromXml(c))
.toList()),
iPRanges: _s.extractXmlChild(elem, 'IPRanges')?.let((elem) =>
elem.findElements('IPRange').map((c) => IPRange.fromXml(c)).toList()),
ownerId: _s.extractXmlStringValue(elem, 'OwnerId'),
vpcId: _s.extractXmlStringValue(elem, 'VpcId'),
);
}