Serializer class Null safety

Serializes to and deserializes from JSON.




hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited


deserialize(String jsonText, Serializable target) → void
Deserializes the given jsonText into the specified serializable target.
deserializeList(String jsonText, List<Serializable> targetList, Serializable creator(Map<String, dynamic>)) → void
Deserializes the given jsonText into the specified list of serializables target.
deserializeOnDemand(String jsonText, OnDemandSerializable target, {Map<String, dynamic Function(dynamic)>? transformers, Map<String, dynamic Function(Map<String, dynamic>?)>? objectCreators}) → void
Deserializes the specied jsonText into the OnDemandSerializable target. Specify transformers to transform values such as enums or non-String Map keys. Specify objectCreators when you have Lists, Map or nested objects.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
serialize(Serializable serializable) String
Serializes the specified serializable instance. Generates the JSON text representation.
serializeList(List<Serializable> serializables) String
Serializes the given list of serializables. Generates the JSON text representation.
serializeOnDemand(OnDemandSerializable onDemandSerializable, {Map<String, dynamic Function(dynamic)>? transformers}) String
Serializes an OnDemandSerializable object.
toString() String
A string representation of this object. [...]


operator ==(Object other) bool
The equality operator. [...]