MessagePayload<M> class

A wrapper object used to safely pass a strongly-typed generic message alongside its bindings through the dash_data_layer operation engine, avoiding the limitations of Dart generic factory properties on Freezed untyped objects.

Constructors

MessagePayload(M message, Bindings<M> bindings)
A wrapper object used to safely pass a strongly-typed generic message alongside its bindings through the dash_data_layer operation engine, avoiding the limitations of Dart generic factory properties on Freezed untyped objects.
const

Properties

bindings Bindings<M>
The bindings used to serialize/deserialize this message type.
final
hashCode int
The hash code for this object.
no setterinherited
message → M
The underlying message object.
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() Json
Serializes the generic message into JSON suitable for APIs.
toString() String
A string representation of this object.
inherited

Operators

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