UserTaskSnapshot class

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.new(includeIfNull: false, explicitToJson: true)

Constructors

UserTaskSnapshot(String id, AppTask task, UserTaskState state, DateTime enqueued, DateTime triggerTime, DateTime? doneTime, bool hasNotificationBeenCreated, String? studyDeploymentId, String? deviceRoleName)
UserTaskSnapshot.fromJson(Map<String, dynamic> json)
factory
UserTaskSnapshot.fromUserTask(UserTask userTask)

Properties

$type ↔ String?
The type name written to __type in JSON; set to jsonType on creation.
getter/setter pairinherited
deviceRoleName ↔ String?
getter/setter pair
doneTime ↔ DateTime?
getter/setter pair
enqueued ↔ DateTime
getter/setter pair
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
hasNotificationBeenCreated ↔ bool
getter/setter pair
id ↔ String
getter/setter pair
jsonType → String
The __type used for JSON serialization of this class.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
state ↔ UserTaskState
getter/setter pair
studyDeploymentId ↔ String?
getter/setter pair
task ↔ AppTask
getter/setter pair
triggerTime ↔ DateTime
getter/setter pair

Methods

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.
override

Operators

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