toType method

Type toType()

Implementation

Type toType() {
  switch (this) {
    case 'ACCOUNT':
      return Type.account;
    case 'ORGANIZATION':
      return Type.organization;
  }
  throw Exception('$this is not known in enum Type');
}