Part.fromXml constructor

Part.fromXml(
  1. XmlElement elem
)

Implementation

factory Part.fromXml(_s.XmlElement elem) {
  return Part(
    eTag: _s.extractXmlStringValue(elem, 'ETag'),
    lastModified: _s.extractXmlDateTimeValue(elem, 'LastModified'),
    partNumber: _s.extractXmlIntValue(elem, 'PartNumber'),
    size: _s.extractXmlIntValue(elem, 'Size'),
  );
}