toPhoneNumberType method

PhoneNumberType toPhoneNumberType()

Implementation

PhoneNumberType toPhoneNumberType() {
  switch (this) {
    case 'TOLL_FREE':
      return PhoneNumberType.tollFree;
    case 'DID':
      return PhoneNumberType.did;
  }
  throw Exception('$this is not known in enum PhoneNumberType');
}