CopyPartResult.fromXml constructor
CopyPartResult.fromXml(
- XmlElement xml
Implementation
CopyPartResult.fromXml(XmlElement xml) {
eTag = getProp(xml, 'ETag')?.value;
// Safely parse the lastModified date
final lastModifiedString = getProp(xml, 'LastModified')?.value;
if (lastModifiedString != null) {
lastModified = DateTime.parse(lastModifiedString);
} else {
lastModified = null; // Handle the null case as needed
}
}