toXml method
XmlElement
toXml(
- String elemName, {
- List<XmlAttribute>? attributes,
})
Implementation
_s.XmlElement toXml(String elemName, {List<_s.XmlAttribute>? attributes}) {
final lambdaInvoke = this.lambdaInvoke;
final s3InitiateRestoreObject = this.s3InitiateRestoreObject;
final s3PutObjectAcl = this.s3PutObjectAcl;
final s3PutObjectCopy = this.s3PutObjectCopy;
final s3PutObjectLegalHold = this.s3PutObjectLegalHold;
final s3PutObjectRetention = this.s3PutObjectRetention;
final s3PutObjectTagging = this.s3PutObjectTagging;
final $children = <_s.XmlNode>[
if (lambdaInvoke != null) lambdaInvoke.toXml('LambdaInvoke'),
if (s3PutObjectCopy != null) s3PutObjectCopy.toXml('S3PutObjectCopy'),
if (s3PutObjectAcl != null) s3PutObjectAcl.toXml('S3PutObjectAcl'),
if (s3PutObjectTagging != null)
s3PutObjectTagging.toXml('S3PutObjectTagging'),
if (s3InitiateRestoreObject != null)
s3InitiateRestoreObject.toXml('S3InitiateRestoreObject'),
if (s3PutObjectLegalHold != null)
s3PutObjectLegalHold.toXml('S3PutObjectLegalHold'),
if (s3PutObjectRetention != null)
s3PutObjectRetention.toXml('S3PutObjectRetention'),
];
final $attributes = <_s.XmlAttribute>[
...?attributes,
];
return _s.XmlElement(
_s.XmlName(elemName),
$attributes,
$children,
);
}