toStorageClass method

StorageClass toStorageClass()

Implementation

StorageClass toStorageClass() {
  switch (this) {
    case 'STANDARD':
      return StorageClass.standard;
    case 'REDUCED_REDUNDANCY':
      return StorageClass.reducedRedundancy;
    case 'STANDARD_IA':
      return StorageClass.standardIa;
    case 'ONEZONE_IA':
      return StorageClass.onezoneIa;
    case 'INTELLIGENT_TIERING':
      return StorageClass.intelligentTiering;
    case 'GLACIER':
      return StorageClass.glacier;
    case 'DEEP_ARCHIVE':
      return StorageClass.deepArchive;
    case 'OUTPOSTS':
      return StorageClass.outposts;
  }
  throw Exception('$this is not known in enum StorageClass');
}