OptionGroup.fromXml constructor

OptionGroup.fromXml(
  1. 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'),
    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'),
  );
}