toVoteValue method
Implementation
VoteValue toVoteValue() {
switch (this) {
case 'YES':
return VoteValue.yes;
case 'NO':
return VoteValue.no;
}
throw Exception('$this is not known in enum VoteValue');
}
VoteValue toVoteValue() {
switch (this) {
case 'YES':
return VoteValue.yes;
case 'NO':
return VoteValue.no;
}
throw Exception('$this is not known in enum VoteValue');
}