toXml method

XmlNode toXml()

Implementation

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