toObjectACL method
Implementation
ObjectACL toObjectACL() {
switch (this) {
case 'private':
return ObjectACL.private;
case 'public-read':
return ObjectACL.publicRead;
case 'public-read-write':
return ObjectACL.publicReadWrite;
case 'authenticated-read':
return ObjectACL.authenticatedRead;
case 'bucket-owner-read':
return ObjectACL.bucketOwnerRead;
case 'bucket-owner-full-control':
return ObjectACL.bucketOwnerFullControl;
case 'aws-exec-read':
return ObjectACL.awsExecRead;
}
throw Exception('$this is not known in enum ObjectACL');
}