Bucket.fromXml constructor

Bucket.fromXml(
  1. XmlElement xml
)

Implementation

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