Skip to content

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
Annotations

Constructors

RPTaskResultData.fromJson

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

RPTaskResultData

RPTaskResultData([
  1. SurveyStatus status = SurveyStatus.unknown,
  2. RPTaskResult? result
])

Properties

fromJsonFunction

Function get fromJsonFunction
override

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

jsonType

String get jsonType
override

Return the __type to be used for JSON serialization of this class. Default is runtimeType. Only specify this if you need another type.

result

RPTaskResult? result
getter/setter pair

The survey result. May be null if the survey was canceled before any result was created.

status

SurveyStatus 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

Map<String, dynamic> toJson()
override

Return a JSON encoding of this object.