CodecTaskPayloadEncoder<T> class
Bridges a typed Codec into the existing TaskPayloadEncoder contract.
- Inheritance
-
- Object
- TaskPayloadEncoder
- CodecTaskPayloadEncoder
Constructors
-
CodecTaskPayloadEncoder({required String idValue, required Codec<
T, Object?> codec}) -
Creates a task payload encoder backed by a typed
codec.const
Properties
-
codec
→ Codec<
T, Object?> -
Typed codec used to encode and decode payloads.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → String
-
Globally unique identifier so other processes can resolve the encoder
when decoding payloads.
no setteroverride
- idValue → String
-
Stable encoder identifier used across producer/worker boundaries.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
decode(
Object? stored) → Object? -
Reconstructs the original handler value from the stored payload.
override
-
encode(
Object? value) → Object? -
Converts the handler's return value into a backend-friendly object.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited