EventResponse class

Response from the event tracking endpoint, {"eventId", "acknowledged"}.

A 2xx status means the event was stored; the fields are informational, so both are optional and a reply without them still decodes.

Annotations
  • @JsonSerializable.new()

Constructors

EventResponse({String? eventId, bool? acknowledged})
Creates an event response
const
EventResponse.fromJson(Map<String, dynamic> json)
JSON deserialization
factory

Properties

acknowledged → bool?
Whether the server accepted the event
final
eventId → String?
Server-assigned event ID
final
hashCode → int
The hash code for this object.
no setteroverride
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>
JSON serialization
toString() → String
A string representation of this object.
override

Operators

operator ==(Object other) → bool
The equality operator.
override