toJson

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

Encodes the given {@code value} with the given {@code writer}.