GsonConverter

class GsonConverter(gson: Gson = Gson()) : ContentConverter

A content converter that uses Gson

Parameters

gson

a configured instance of Gson

Constructors

Link copied to clipboard
constructor(gson: Gson = Gson())

Functions

Link copied to clipboard
open suspend override fun deserialize(charset: Charset, typeInfo: TypeInfo, content: ByteReadChannel): Any?
Link copied to clipboard
open suspend override fun serialize(contentType: ContentType, charset: Charset, typeInfo: TypeInfo, value: Any?): OutgoingContent