SupabaseSerializer

An interface for serializing and deserializing objects. Note: Internally, KotlinX Serialization will always be used.

Inheritors

Functions

Link copied to clipboard
abstract 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
abstract 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