KotlinXSerializer

class KotlinXSerializer(json: Json = Json) : SupabaseSerializer

A SupabaseSerializer that uses kotlinx.serialization

Constructors

Link copied to clipboard
constructor(json: Json = Json)

Functions

Link copied to clipboard
open override fun <T : Any> decode(type: KType, value: String): T

Decodes the given value to an object of type T

Link copied to clipboard
inline fun <T : Any> SupabaseSerializer.decode(value: String): T

Decodes the given value to an object of type T

Link copied to clipboard
open override fun <T : Any> encode(type: KType, value: T): String

Encodes the given value to a string

Link copied to clipboard
inline fun <T : Any> SupabaseSerializer.encode(value: T): String

Encodes the given value to a string

Link copied to clipboard
inline fun <T : Any> SupabaseSerializer.encodeToJsonElement(value: T): JsonElement

Encodes the given value to a JsonElement