Map<String, dynamic> toJson() { final bucketArn = this.bucketArn; final keyRange = this.keyRange; return { if (bucketArn != null) 'BucketArn': bucketArn, if (keyRange != null) 'KeyRange': keyRange, }; }