serializeWith<T> abstract method
Convenience method for when you know the type you're serializing.
Specify the type by specifying its Serializer class. Equivalent to
calling serialize with a specifiedType
.
Implementation
Object? serializeWith<T>(Serializer<T> serializer, T? object);