toPhoneNumberType method

PhoneNumberType toPhoneNumberType()

Implementation

PhoneNumberType toPhoneNumberType() {
  switch (this) {
    case 'Local':
      return PhoneNumberType.local;
    case 'TollFree':
      return PhoneNumberType.tollFree;
  }
  throw Exception('$this is not known in enum PhoneNumberType');
}