toJson method
Implementation
Map<String, dynamic> toJson() {
final accessControlList = this.accessControlList;
final bucketName = this.bucketName;
final cannedACL = this.cannedACL;
final encryption = this.encryption;
final prefix = this.prefix;
final storageClass = this.storageClass;
final tagging = this.tagging;
final userMetadata = this.userMetadata;
return {
if (accessControlList != null) 'AccessControlList': accessControlList,
if (bucketName != null) 'BucketName': bucketName,
if (cannedACL != null) 'CannedACL': cannedACL.toValue(),
if (encryption != null) 'Encryption': encryption,
if (prefix != null) 'Prefix': prefix,
if (storageClass != null) 'StorageClass': storageClass.toValue(),
if (tagging != null) 'Tagging': tagging,
if (userMetadata != null) 'UserMetadata': userMetadata,
};
}