UserTaskSnapshot class

A snapshot of a UserTask at any given time. Used for saving user tasks persistently across app restart.

Inheritance
  • Object
  • Serializable
  • UserTaskSnapshot
Annotations
  • @JsonSerializable(fieldRename: FieldRename.none, includeIfNull: false)

Constructors

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

Properties

$type String?
The runtime class name (type) of this object. Used for deserialization from JSON objects.
getter/setter pairinherited
deviceRoleName String?
getter/setter pair
enqueued DateTime
getter/setter pair
fromJsonFunction Function
The function which can convert a JSON string 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
Return the __type to be used for JSON serialization of this class. Default is runtimeType. Only specify this if you need another type.
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>
Return a JSON encoding of this object.
override
toString() String
A string representation of this object.
override

Operators

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