toPhoneNumberType method
Implementation
PhoneNumberType toPhoneNumberType() {
switch (this) {
case 'MOBILE':
return PhoneNumberType.mobile;
case 'WORK':
return PhoneNumberType.work;
case 'HOME':
return PhoneNumberType.home;
}
throw Exception('$this is not known in enum PhoneNumberType');
}