SerdeCtx class
De-serialization context with Serializers for creating objects from serialized values
Constructors
- SerdeCtx()
- De-serialization context with Serializers for creating objects from serialized values
Properties
Methods
-
add(
Serializer< Object> serializer) → void -
Adds a
serializer
into this context -
addAll(
Iterable< Serializer< serializers) → voidObject> > -
Adds multiple
serializers
into this context -
fromJson<
T> (Object? json, {String? key}) → T -
Parses
json
into a value of typeT
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
of<
T> ({String? key}) → Serializer< T> ? -
Returns the serializer for the given type
T
. Ifkey
is non-null it will be used to find the serializer. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited