RPImageChoice
The image choice object which the participants can choose from, during a RPQuestionStep with RPImageChoiceAnswerFormat
- Inheritance
-
- Object
- Serializable
- RPImageChoice
- Annotations
-
- @JsonSerializable(includeIfNull: false, explicitToJson: true)
Constructors
RPImageChoice.fromJson
RPImageChoice
Properties
description
getter/setter pair
The description fitting the image. Is displayed when selected.
fromJsonFunction
The function which can convert a JSON string to an object of this type.
imageUrl
getter/setter pair
The image portraying the choice.
key
getter/setter pair
The key of the image if this is to be loaded from the images in the assets on the phone. Specify either the image or the key.
value
getter/setter pair
The value of the choice. Can be any type but MUST be serializable if this feature is used.
Methods
toJson
Return a JSON encoding of this object.