Map<String, dynamic> toJson() { final bucketARN = this.bucketARN; final fileKey = this.fileKey; return { if (bucketARN != null) 'BucketARN': bucketARN, if (fileKey != null) 'FileKey': fileKey, }; }