toXml method

XmlNode toXml()

Implementation

XmlNode toXml() {
  final builder = XmlBuilder();
  builder.element(
    'Part',
    nest: () {
      builder.element('ETag', nest: eTag);
      builder.element('LastModified', nest: lastModified!.toIso8601String());
      builder.element('PartNumber', nest: partNumber.toString());
      builder.element('Size', nest: size.toString());
    },
  );
  return builder.buildDocument();
}