asTrogglePosition method

TrogglePosition asTrogglePosition()

Implementation

TrogglePosition asTrogglePosition() {
  switch (this) {
    case 0:
      return TrogglePosition.no;
    case 1:
      return TrogglePosition.yes;
    case 2:
      return TrogglePosition.maybe;
    default:
      return TrogglePosition.maybe;
  }
}