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