toS3ObjectLockRetentionMode method

S3ObjectLockRetentionMode toS3ObjectLockRetentionMode()

Implementation

S3ObjectLockRetentionMode toS3ObjectLockRetentionMode() {
  switch (this) {
    case 'COMPLIANCE':
      return S3ObjectLockRetentionMode.compliance;
    case 'GOVERNANCE':
      return S3ObjectLockRetentionMode.governance;
  }
  throw Exception('$this is not known in enum S3ObjectLockRetentionMode');
}