OptionGroup.fromXml constructor
OptionGroup.fromXml(
- XmlElement elem
Implementation
factory OptionGroup.fromXml(_s.XmlElement elem) {
return OptionGroup(
allowsVpcAndNonVpcInstanceMemberships:
_s.extractXmlBoolValue(elem, 'AllowsVpcAndNonVpcInstanceMemberships'),
engineName: _s.extractXmlStringValue(elem, 'EngineName'),
majorEngineVersion: _s.extractXmlStringValue(elem, 'MajorEngineVersion'),
optionGroupArn: _s.extractXmlStringValue(elem, 'OptionGroupArn'),
optionGroupDescription:
_s.extractXmlStringValue(elem, 'OptionGroupDescription'),
optionGroupName: _s.extractXmlStringValue(elem, 'OptionGroupName'),
options: _s.extractXmlChild(elem, 'Options')?.let((elem) =>
elem.findElements('Option').map((c) => Option.fromXml(c)).toList()),
vpcId: _s.extractXmlStringValue(elem, 'VpcId'),
);
}