Object.fromSoup constructor

Object.fromSoup(
  1. String url,
  2. XmlElement soup
)

Implementation

Object.fromSoup(String url, XmlElement soup)
    : id = soup.findElements('Key').single.text,
      url = url,
      etag = soup.findElements('ETag').single.text,
      size = int.parse(soup.findElements('Size').single.text),
      owner = Owner.fromSoup(soup.findElements('Owner').single),
      storageclass = soup.findElements('StorageClass').single.text {
  final date = soup.findElements('LastModified').single.text;
  lastModified = DateTime.parse(date).toLocal();
}