toValue method
Implementation
String toValue() {
switch (this) {
case VoteValue.yes:
return 'YES';
case VoteValue.no:
return 'NO';
}
}
String toValue() {
switch (this) {
case VoteValue.yes:
return 'YES';
case VoteValue.no:
return 'NO';
}
}