toValue method
Implementation
String toValue() {
switch (this) {
case ContactProtocol.email:
return 'Email';
case ContactProtocol.sms:
return 'SMS';
}
}
String toValue() {
switch (this) {
case ContactProtocol.email:
return 'Email';
case ContactProtocol.sms:
return 'SMS';
}
}