serializeWith<T> method

Object serializeWith<T>(
  1. Serializer<T> serializer,
  2. T object
)

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);