toValue method

String toValue()

Implementation

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