kotlin-client
/
com.couchbase.client.kotlin.codec
/
JsonTranscoder
Json
Transcoder
class
JsonTranscoder
(serializer:
JsonSerializer
) :
Transcoder
Content copied to clipboard
Converts the value to and from JSON by delegating to a
JsonSerializer
Constructors
Functions
Constructors
JsonTranscoder
Link copied to clipboard
fun
JsonTranscoder
(serializer:
JsonSerializer
)
Content copied to clipboard
Functions
decode
Link copied to clipboard
open override fun <
T
>
decode
(content:
Content
, type:
TypeRef
<
T
>):
T
Content copied to clipboard
Decodes the wire representation into the entity based on the data format.
doEncode
Link copied to clipboard
open override fun <
T
>
doEncode
(input:
T
, type:
TypeRef
<
T
>):
Content
Content copied to clipboard
Encodes the given input into the wire representation based on the data format.
encode
Link copied to clipboard
open fun <
T
>
encode
(input:
T
, type:
TypeRef
<
T
>):
Content
Content copied to clipboard