Skip to content

RPImageChoiceAnswerFormat

Class representing an Answer Format that lets participants choose an image from a set of images.

Inheritance
Annotations

Constructors

RPImageChoiceAnswerFormat.fromJson

RPImageChoiceAnswerFormat.fromJson(
  1. Map<String, dynamic> json
)

RPImageChoiceAnswerFormat

RPImageChoiceAnswerFormat({
  1. required List<RPImageChoice> choices,
})

Returns an initialized RPImageChoiceAnswerFormat with the given list of RPImageChoices.

Properties

choices

List<RPImageChoice> choices
getter/setter pair

A list of available RPImageChoice objects which represent the choices to the participants.

fromJsonFunction

Function get fromJsonFunction
override

The function which can convert a JSON string to an object of this type.

questionType

RPQuestionType get questionType
override
set questionType (RPQuestionType value)
inherited

The question type of this answer. Should be implemented / overwritten in the subclasses.

Methods

toJson

Map<String, dynamic> toJson()
override

Return a JSON encoding of this object.