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