toType method

Type toType()

Implementation

Type toType() {
  switch (this) {
    case 'CONVERSATION':
      return Type.conversation;
    case 'DICTATION':
      return Type.dictation;
  }
  throw Exception('$this is not known in enum Type');
}