toPhoneType method
Implementation
PhoneType toPhoneType() {
switch (this) {
case 'SOFT_PHONE':
return PhoneType.softPhone;
case 'DESK_PHONE':
return PhoneType.deskPhone;
}
throw Exception('$this is not known in enum PhoneType');
}