serialize abstract method
Serializes object
.
A Serializer must have been provided for every type the object uses.
Types that are known statically can be provided via specifiedType
. This
will reduce the amount of data needed on the wire. The exact same
specifiedType
will be needed to deserialize.
Create one using SerializersBuilder.
TODO(davidmorgan): document the wire format.
Implementation
Object? serialize(Object? object,
{FullType specifiedType = FullType.unspecified});