toSnowballType method

SnowballType toSnowballType()

Implementation

SnowballType toSnowballType() {
  switch (this) {
    case 'STANDARD':
      return SnowballType.standard;
    case 'EDGE':
      return SnowballType.edge;
    case 'EDGE_C':
      return SnowballType.edgeC;
    case 'EDGE_CG':
      return SnowballType.edgeCg;
    case 'EDGE_S':
      return SnowballType.edgeS;
    case 'SNC1_HDD':
      return SnowballType.snc1Hdd;
  }
  throw Exception('$this is not known in enum SnowballType');
}