fieldsAs

inline fun <T> fieldsAs(serializer: JsonSerializer? = null): T?

Returns fields deserialized into an object of the requested type, or null if there are no fields.

Parameters

serializer

Serializer to use for the conversion. Defaults to the serialized specified in the call to searchQuery.