PrimitiveSerializer<T> class Null safety

A Serializer that serializes to and from primitive JSON values.

Implemented types
Implementers

Constructors

PrimitiveSerializer()

Properties

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
types Iterable<Type>
The Types that can be serialized. [...]
read-only, inherited
wireName String
The wire name of the serializable type. For most classes, the class name. For primitives and collections a lower-case name is defined as part of the built_json wire format.
read-only, inherited

Methods

deserialize(Serializers serializers, Object serialized, {FullType specifiedType = FullType.unspecified}) → T
Deserializes serialized. [...]
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
serialize(Serializers serializers, T object, {FullType specifiedType = FullType.unspecified}) Object
Serializes object. [...]
toString() String
A string representation of this object. [...]
inherited

Operators

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