toXml method
XmlElement
toXml(
- String elemName, {
- List<XmlAttribute>? attributes,
})
Implementation
_s.XmlElement toXml(String elemName, {List<_s.XmlAttribute>? attributes}) {
final bucket = this.bucket;
final expression = this.expression;
final expressionType = this.expressionType;
final inputSerialization = this.inputSerialization;
final key = this.key;
final outputSerialization = this.outputSerialization;
final expectedBucketOwner = this.expectedBucketOwner;
final requestProgress = this.requestProgress;
final sSECustomerAlgorithm = this.sSECustomerAlgorithm;
final sSECustomerKey = this.sSECustomerKey;
final sSECustomerKeyMD5 = this.sSECustomerKeyMD5;
final scanRange = this.scanRange;
final $children = <_s.XmlNode>[
_s.encodeXmlStringValue('Expression', expression),
_s.encodeXmlStringValue('ExpressionType', expressionType.toValue()),
if (requestProgress != null) requestProgress.toXml('RequestProgress'),
inputSerialization.toXml('InputSerialization'),
outputSerialization.toXml('OutputSerialization'),
if (scanRange != null) scanRange.toXml('ScanRange'),
];
final $attributes = <_s.XmlAttribute>[
...?attributes,
];
return _s.XmlElement(
_s.XmlName(elemName),
$attributes,
$children,
);
}