GsonSerializer

class GsonSerializer : JsonSerializer

JsonSerializer using Gson as backend.

Constructors

<init>

GsonSerializer(block: GsonBuilder.() -> Unit = {})

JsonSerializer using Gson as backend.

Functions

read

fun read(type: TypeInfo, body: Input): Any

Read content from response using information specified in type.

write

fun write(
    data: Any,
    contentType: ContentType
): OutgoingContent

Convert data object to OutgoingContent.

Inherited Functions

write

open fun write(data: Any): OutgoingContent

Convert data object to OutgoingContent.