Answer class

The answer to one question. Exactly one member besides question is present, matching the question's type, or abstain for an optional question left unanswered.

Constructors

Answer({required Key question, List<String>? choice, List<String>? ranking, Map<String, int>? scores, String? text, Object? abstain})
const
Answer.fromJson(Map<String, dynamic> json)
Read this payload from a decoded JSON object.
factory

Properties

abstain → Object?
final
choice → List<String>?
final
hashCode → int
The hash code for this object.
no setterinherited
question → String
final
ranking → List<String>?
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
scores → Map<String, int>?
final
text → String?
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
Serialize to a JSON-encodable map, omitting absent members.
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited