RPTaskResultData class

The result of a survey or cognitive test from an RPAppTask.

Created by SurveyUserTask when the user submits or cancels the task, and collected for the SurveySamplingPackage.SURVEY measure.

Inheritance
  • Object
  • Serializable
  • Data
  • RPTaskResultData
Annotations
  • @JsonSerializable.new(includeIfNull: false, explicitToJson: true)

Constructors

RPTaskResultData([SurveyStatus status = SurveyStatus.unknown, RPTaskResult? result])
RPTaskResultData.fromJson(Map<String, dynamic> json)
factory

Properties

$type ↔ String?
The type name written to __type in JSON; set to jsonType on creation.
getter/setter pairinherited
dataType → DataType
The type of this data as a DataType.
no setterinherited
fromJsonFunction → Function
The generated function that converts a JSON map to an object of this type.
no setteroverride
hashCode → int
The hash code for this object.
no setterinherited
jsonType → String
The __type used for JSON serialization of this class.
no setteroverride
recordId → String?
Stable identifier of the source record, if available.
no setterinherited
result ↔ RPTaskResult?
The survey result. May be null if the survey was canceled before any result was created.
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
status ↔ SurveyStatus
The status of result (was the survey submitted or canceled?). When a survey is canceled, result holds the data entered by the user until it was canceled.
getter/setter pair

Methods

equivalentTo(Data other) → bool
Is this data equivalent to other?
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
Returns a JSON map of this object, including the __type property.
override
toString() → String
A string representation of this object.
inherited

Operators

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