RPTaskResult
The result object a Task creates
- Inheritance
-
- Object
- Serializable
- RPResult
- RPTaskResult
- Annotations
-
- @JsonSerializable(includeIfNull: false, explicitToJson: true)
Constructors
RPTaskResult.fromJson
RPTaskResult
- required String identifier,
Create a RPTaskResult with a given identifier and an empty map of results.
identifier should always be the identifier of the "parent" task. It sets startDate to the DateTime.now(). Since these objects are instantiated together with the Task it belongs to so it can be used for measuring how much time the participant spent on the given Task.
Properties
fromJsonFunction
The function which can convert a JSON string to an object of this type.
results
The results of each step of this task result.
Each entry represents a step's result (RPResult). The keys are strings with the identifiers of the corresponding step.
Methods
getStepResultForIdentifier
Returns result value for the given identifier.
setStepResultForIdentifier
Add a result to the results map with the given identifier.
toJson
Return a JSON encoding of this object.