toXml method
XmlNode
toXml()
Implementation
XmlNode toXml() {
final builder = XmlBuilder();
builder.element(
'CopyObjectResult',
nest: () {
if (eTag != null) {
builder.element('ETag', nest: eTag);
}
if (lastModified != null) {
builder.element(
'LastModified',
nest: lastModified!.toIso8601String(),
);
}
},
);
return builder.buildDocument();
}