UnknownRealtimeEvent class

Forward-compatible fallback for RealtimeEvent discriminators that this client doesn't model individually.

Surfaces unrecognised wire type values without throwing so future server additions or out-of-band frames don't break the event stream. The raw JSON is preserved verbatim and round-trips through toJson.

Implemented types
Annotations
  • @immutable

Constructors

UnknownRealtimeEvent(Map<String, dynamic> json)
Creates an UnknownRealtimeEvent from the raw JSON payload.
const

Properties

eventId String?
The event ID.
no setteroverride
hashCode int
The hash code for this object.
no setteroverride
json Map<String, dynamic>
The raw JSON map preserved verbatim.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
type String
The event type.
no setteroverride

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Converts to JSON.
override
toString() String
A string representation of this object.
override

Operators

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