toBucketCannedACL method

BucketCannedACL toBucketCannedACL()

Implementation

BucketCannedACL toBucketCannedACL() {
  switch (this) {
    case 'private':
      return BucketCannedACL.private;
    case 'public-read':
      return BucketCannedACL.publicRead;
    case 'public-read-write':
      return BucketCannedACL.publicReadWrite;
    case 'authenticated-read':
      return BucketCannedACL.authenticatedRead;
  }
  throw Exception('$this is not known in enum BucketCannedACL');
}