JsonFormat

constructor(serializer: KSerializer<T>)

Parameters

serializer

The KSerializer to use for encoding and decoding.

Type Parameters

T

The type of the body to encode/decode.