toXml method
XmlNode
toXml()
Implementation
XmlNode toXml() {
final builder = XmlBuilder();
builder.element('Object', nest: () {
builder.element('ETag', nest: eTag);
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);
});
return builder.buildDocument();
}