Skip to content

TriggeredTask

Indicates the task with taskName was started or stopped (control) by the trigger with triggerId on the device with destinationDeviceRoleName, referring to identifiers in the study protocol. triggerData may contain additional information related to the circumstances which caused the trigger to fire.

Data type CarpDataTypes.TRIGGERED_TASK.

Inheritance
Annotations

Constructors

TriggeredTask.fromJson

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

TriggeredTask

TriggeredTask({
  1. required int triggerId,
  2. required String taskName,
  3. required String destinationDeviceRoleName,
  4. required Control control,
  5. Data? triggerData,
})

Properties

control

Control control
getter/setter pair

destinationDeviceRoleName

String destinationDeviceRoleName
getter/setter pair

fromJsonFunction

Function get fromJsonFunction
override

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

taskName

String taskName
getter/setter pair

triggerData

Data? triggerData
getter/setter pair

triggerId

int triggerId
getter/setter pair

Methods

toJson

Map<String, dynamic> toJson()
override

Return a JSON encoding of this object.