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