toStateDBType method

StateDBType toStateDBType()

Implementation

StateDBType toStateDBType() {
  switch (this) {
    case 'LevelDB':
      return StateDBType.levelDB;
    case 'CouchDB':
      return StateDBType.couchDB;
  }
  throw Exception('$this is not known in enum StateDBType');
}