enumChoice

inline fun <E : Enum<E>> enumChoice(id: String): ChoiceAnswer<E>(source)

Reads a Choice by id as constants of E. E must have a constant for every option the question declared, else this is a mistake in the calling code, reported as IllegalArgumentException. An option the server returns that the question never declared is a JevResponseValidationException.