ValueSerializer class abstract
Serializer responsible for mapping atomic types from and to json.
Constructors
- ValueSerializer()
-
Constant super-constructor to allow constant child classes.
const
- ValueSerializer.defaults()
-
The builtin default serializer.
constfactory
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
-
fromJson<
T> (dynamic json) → T - Inverse of toJson: Converts a value obtained from JsonCodec.decode into a value that can be hold by data classes.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson<
T> (T value) → dynamic -
Converts the
value
to something that can be passed to JsonCodec.encode. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited