JsonTraitEvent class

Represents a dynamic JSON event payload that conforms to json_trait_schema.md.

Constructors

JsonTraitEvent({Map<String, Object?>? data, String? id})
JsonTraitEvent.fromJson(Map json_)

Properties

data ↔ Map<String, Object?>?
Holds the event payload fields, which conform to the event's registered JSON Schema.
getter/setter pair
hashCode → int
The hash code for this object.
no setterinherited
id ↔ String?
Identifies the event as ., where `` is the PascalCase key in the schema's x-capability-info.events, for example capability.matter.standard.DoorLock.LockOperation or capability.generic.acme.Warranty.ClaimUpdated.
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent 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