toObjectOwnership method

ObjectOwnership toObjectOwnership()

Implementation

ObjectOwnership toObjectOwnership() {
  switch (this) {
    case 'BucketOwnerPreferred':
      return ObjectOwnership.bucketOwnerPreferred;
    case 'ObjectWriter':
      return ObjectOwnership.objectWriter;
  }
  throw Exception('$this is not known in enum ObjectOwnership');
}