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> decode(type: KType, value: String): T

Decodes the given value to an object of type T

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

Decodes the given value to an object of type T

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

Encodes the given value to a string

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

Encodes the given value to a string

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

Encodes the given value to a JsonElement