RPChoiceAnswerFormat
Class representing an Answer Format that lets participants choose from a fixed set of choices.
- Inheritance
-
- Object
- Serializable
- RPAnswerFormat
- RPChoiceAnswerFormat
- Annotations
-
- @JsonSerializable(includeIfNull: false, explicitToJson: true)
Constructors
RPChoiceAnswerFormat.fromJson
RPChoiceAnswerFormat
- required RPChoiceAnswerStyle answerStyle,
- required List<
RPChoice> choices,
Returns an initialized choice answer format with the given ChoiceAnswerStyle and the set of RPChoices.
Properties
answerStyle
getter/setter pair
The answer style - single or multiple choice.
choices
An array of available RPChoice objects which represent the choices to the participant.
fromJsonFunction
The function which can convert a JSON string to an object of this type.
Methods
toJson
Return a JSON encoding of this object.