RPTaskResultData
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(includeIfNull: false, explicitToJson: true)
Constructors
RPTaskResultData.fromJson
RPTaskResultData
- SurveyStatus status = SurveyStatus.unknown,
- RPTaskResult? result
Properties
fromJsonFunction
The function which can convert a JSON string to an object of this type.
jsonType
Return the __type to be used for JSON serialization of this class. Default is runtimeType. Only specify this if you need another type.
result
getter/setter pair
The survey result. May be null if the survey was canceled before any result was created.
status
getter/setter pair
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.
Methods
toJson
Return a JSON encoding of this object.