Map<String, dynamic> toJson() { final bucket = this.bucket; final key = this.key; final etag = this.etag; return { 'bucket': bucket, 'key': key, if (etag != null) 'etag': etag, }; }