toSnowballCapacity method

SnowballCapacity toSnowballCapacity()

Implementation

SnowballCapacity toSnowballCapacity() {
  switch (this) {
    case 'T50':
      return SnowballCapacity.t50;
    case 'T80':
      return SnowballCapacity.t80;
    case 'T100':
      return SnowballCapacity.t100;
    case 'T42':
      return SnowballCapacity.t42;
    case 'T98':
      return SnowballCapacity.t98;
    case 'T8':
      return SnowballCapacity.t8;
    case 'NoPreference':
      return SnowballCapacity.noPreference;
  }
  throw Exception('$this is not known in enum SnowballCapacity');
}