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 : 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
abstract 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