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

children Set<SerdeCtx>
Other context associated with this context
final
hashCode int
The hash code for this object.
no setterinherited
map Map<Type, Serializer<Object>>
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

add(Serializer<Object> serializer) → void
Adds a serializer into this context
addAll(Iterable<Serializer<Object>> serializers) → void
Adds multiple serializers into this context
fromJson<T>(Object? json, {String? key}) → T
Parses json into a value of type T
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. If key 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