toContactType method

ContactType toContactType()

Implementation

ContactType toContactType() {
  switch (this) {
    case 'PERSON':
      return ContactType.person;
    case 'COMPANY':
      return ContactType.company;
    case 'ASSOCIATION':
      return ContactType.association;
    case 'PUBLIC_BODY':
      return ContactType.publicBody;
    case 'RESELLER':
      return ContactType.reseller;
  }
  throw Exception('$this is not known in enum ContactType');
}