MBAutomationEvent class
An event of MBAutomation.
Constructors
-
MBAutomationEvent.new({required String event, String? name, Map<
String, dynamic> ? metadata}) -
Initializes an event with the parameters passed. Timestamp is set with
DateTime.now()
. @param event The name of the event. @param name The name of the event. @param metadata Additional metadata for the event. -
MBAutomationEvent.fromDbData({required Map<
String, dynamic> dbData}) -
Initializes an event with the
Map
retrieved from the DB. @param dbData data retrieved from the DB.factory
Properties
- event → String
-
The event name.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → int?
-
The id of the event.
final
-
metadata
→ Map<
String, dynamic> ? -
Additional metadata for the event.
final
- name → String?
-
The name of the event.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- timestamp → DateTime
-
Timestamp of the event.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toApiDictionary(
) → Map< String, dynamic> -
Converts this event to a
Map
to send it with MBurger APIs. -
toDbDictionary(
) → Map< String, dynamic> -
Converts this event to a
Map
to save it in the DB. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited