Serializer class final
Versioned JSON-compatible serializer used by RPC and hydration handoff.
Constructors
-
Serializer({Iterable<
SerializationAdapter> adapters = const []}) -
Creates a serializer with built-in and custom
adapters.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
decode(
Object? value) → Object? - Restores a value previously produced by encode.
-
decodeJson(
String value) → Object? - Decodes one JSON string produced by encodeJson.
-
encode(
Object? value) → Object? -
Converts
valueto JSON-compatible values with tagged extensions. -
encodeJson(
Object? value) → String -
Encodes
valueas a JSON string. -
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