UserTaskSnapshot
A serializable snapshot of a UserTask.
Saved by the PersistenceService so the AppTaskController can restore its queue after an app restart.
- Inheritance
-
- Object
- Serializable
- UserTaskSnapshot
- Annotations
-
- @JsonSerializable(includeIfNull: false, explicitToJson: true)
Constructors
UserTaskSnapshot.fromJson
UserTaskSnapshot.fromUserTask
- UserTask userTask
UserTaskSnapshot
Properties
deviceRoleName
getter/setter pair
doneTime
getter/setter pair
enqueued
getter/setter pair
fromJsonFunction
The function which can convert a JSON string to an object of this type.
hasNotificationBeenCreated
getter/setter pair
id
getter/setter pair
state
getter/setter pair
studyDeploymentId
getter/setter pair
task
getter/setter pair
triggerTime
getter/setter pair
Methods
toJson
Return a JSON encoding of this object.
toString
A string representation of this object.
Some classes have a default textual representation, often paired with a static parse function (like int.parse). These classes will provide the textual representation as their string representation.
Other classes have no meaningful textual representation that a program will care about. Such classes will typically override toString to provide useful information when inspecting the object, mainly for debugging or logging.