Map<String, dynamic> toJson() { final s3Bucket = this.s3Bucket; final s3Prefix = this.s3Prefix; return { 'S3Bucket': s3Bucket, if (s3Prefix != null) 'S3Prefix': s3Prefix, }; }