toJson

open fun toJson(writer: JsonWriter, @Nullable value: T)

Encodes the given value with the given writer.