DeviceTemplate class

An object representing a device for a placement template (see PlacementTemplate).

Annotations
  • @JsonSerializable(includeIfNull: false, explicitToJson: true, createFactory: true, createToJson: true)

Constructors

DeviceTemplate({Map<String, String> callbackOverrides, String deviceType})
DeviceTemplate.fromJson(Map<String, dynamic> json)
factory

Properties

callbackOverrides Map<String, String>
An optional Lambda function to invoke instead of the default Lambda function provided by the placement template.
@JsonKey(name: 'callbackOverrides'), final
deviceType String
The device type, which currently must be "button".
@JsonKey(name: 'deviceType'), final
hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toJson() Map<String, dynamic>
toString() String
A string representation of this object. [...]
inherited

Operators

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