toXml method

XmlNode toXml()

Implementation

XmlNode toXml() {
  final builder = XmlBuilder();
  builder.element('ObjectVersion', nest: () {
    builder.element('ETag', nest: eTag);
    builder.element('IsLatest', nest: isLatest! ? 'TRUE' : 'FALSE');
    builder.element('Key', nest: key);
    builder.element('LastModified', nest: lastModified!.toIso8601String());
    builder.element('Owner', nest: owner!.toXml());
    builder.element('Size', nest: size.toString());
    builder.element('StorageClass', nest: storageClass);
    builder.element('VersionId', nest: versionId);
  });
  return builder.buildDocument();
}