contentAs

inline fun <T> contentAs(jsonSerializer: JsonSerializer? = null): T

Returns the document content after deserializing it into the type specified by the type parameter.

Parameters

jsonSerializer

the serializer to use, or null to use the serializer configured on the cluster environment.