Skip to content

ManualTrigger

A trigger initiated by a user, i.e., the user decides when to start a task.

The label and description are shown to the user.

Inheritance
Annotations

Constructors

ManualTrigger.fromJson

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

ManualTrigger

ManualTrigger({
  1. String? sourceDeviceRoleName,
  2. bool? requiresPrimaryDevice = false,
  3. String? label,
  4. String? description,
})

Properties

description

String? description
getter/setter pair

An optional description elaborating on what happens when initiating this trigger.

fromJsonFunction

Function get fromJsonFunction
override

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

label

String? label
getter/setter pair

A short label to describe the action performed once the user chooses to initiate this trigger.

Methods

toJson

Map<String, dynamic> toJson()
override

Return a JSON encoding of this object.