RPImageChoiceAnswerFormat class

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

Inheritance
Annotations
  • @JsonSerializable(fieldRename: FieldRename.snake, includeIfNull: false)

Constructors

RPImageChoiceAnswerFormat()
RPImageChoiceAnswerFormat.fromJson(Map<String, dynamic> json)
factory
RPImageChoiceAnswerFormat.withParams(List<RPImageChoice> _choices)
Returns an initialized RPImageChoiceAnswerFormat with the given list of RPImageChoices.

Properties

choices List<RPImageChoice>
A list of available RPImageChoice objects which represent the choices to the participants.
read / write
questionType QuestionType
The Question Type of the Answer Format. Should be implemented in the subclasses.
read / write, inherited-setter, override-getter
hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

toJson() Map<String, dynamic>
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
Returns a string representation of this object.
inherited

Operators

operator ==(dynamic other) bool
The equality operator. [...]
inherited