toStorageClass method

StorageClass toStorageClass()

Implementation

StorageClass toStorageClass() {
  switch (this) {
    case 'WARM':
      return StorageClass.warm;
    case 'COLD':
      return StorageClass.cold;
    case 'DELETED':
      return StorageClass.deleted;
  }
  throw Exception('$this is not known in enum StorageClass');
}