Bucket.fromXml constructor

Bucket.fromXml(
  1. XmlElement xml
)

Implementation

factory Bucket.fromXml(XmlElement xml) {
  return Bucket(
    DateTime.parse(getProp(xml, 'CreationDate')!.innerText),
    getProp(xml, 'Name')!.innerText,
  );
}