Event class
Represents an event to be sent to the Gameball API.
This class defines the structure of an event object with properties for event data, customer Id, optional mobile number, and optional email.
- Annotations
-
- @JsonSerializable.new(createFactory: false)
Constructors
-
Event.fromJson(Map<
String, dynamic> json) -
Create from JSON map.
factory
Properties
- customerId → String
-
The unique identifier of the customer associated with the event.
final
- email → String?
-
The customer's email address (optional).
final
-
events
→ Map<
String, Map< String, Object> > -
A map containing the actual event data.
The key represents the event type, and the value is a map containing additional event-specific data.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- mobile → String?
-
The customer's mobile number (optional).
final
- 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> -
Converts the
Eventobject to a JSON map. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited