ListPartsOutput.fromXml constructor

ListPartsOutput.fromXml(
  1. XmlElement xml
)

Implementation

ListPartsOutput.fromXml(XmlElement xml) {
  isTruncated = getProp(xml, 'IsLatest')?.innerText.toUpperCase() == 'TRUE';
  nextPartNumberMarker =
      int.parse(getProp(xml, 'NextPartNumberMarker')!.innerText);
  parts = xml.findElements('Upload').map((e) => Part.fromXml(e)).toList();
}