Event class

Event data class

Annotations
  • @JsonSerializable(createToJson: false)

Constructors

Event({required String eventType, required String from, required DateTime timestamp, required Map<String, dynamic> event})
Event constructor
const
Event.fromJson(Map<String, dynamic> json)
JSON to object converter
factory

Properties

event Map<String, dynamic>
Event data
final
eventType String
Event type
final
from String
Passed from
final
hashCode int
The hash code for this object.
no setterinherited
interchangeEvent InterchangeEvent?
Get InterchangeEvent instance if event is interchange event
no setter
iotInterchangeEvent IotInterchangeEvent?
Get IotInterchangeEvent instance if event is iot interchange event
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
timestamp DateTime
Emitted at
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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