toXml method

XmlElement toXml (
  1. String elemName
)

Implementation

_s.XmlElement toXml(String elemName) {
  final $children = <_s.XmlNode>[
    _s.encodeXmlBoolValue('Enabled', enabled),
    _s.encodeXmlIntValue('Quantity', quantity),
    if (items != null)
      _s.XmlElement(_s.XmlName('Items'), [], <_s.XmlNode>[
        ...items.map((v) => _s.encodeXmlStringValue('AwsAccountNumber', v))
      ]),
  ];
  return _s.XmlElement(
    _s.XmlName(elemName),
    [],
    $children.where((e) => e != null),
  );
}