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