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;
  }
  throw Exception('$this is not known in enum StorageClass');
}