Package-level declarations

Types

Link copied to clipboard
object AnyValueSerializer : KSerializer<AnyValue>

Serializes an AnyValue as the JSON it holds. Encoding works with any encoder (the value is encoded structurally as strings, booleans, doubles, lists and maps), decoding only with a JSON decoder, as the shape of the value is only known once it is read. The Android SDK's is a placeholder that its own encoder recognises; on Android that one is used.

Link copied to clipboard
open class EnumValueSerializer<T : Enum<T>>(values: Iterable<T>) : KSerializer<EnumValue<T>>

Serializes an EnumValue as the enum constant's name, decoding a name that is not among values as EnumValue.Unknown rather than failing. Pure Kotlin, not tied to any wire format.

Link copied to clipboard
object KotlinxDatetimeLocalDateSerializer : KSerializer<LocalDate>

LocalDateSerializer for kotlinx.datetime.LocalDate fields.

Link copied to clipboard
object LocalDateSerializer : KSerializer<LocalDate>

Serializes a LocalDate as the YYYY-MM-DD string of the Data Connect Date scalar, accepting any --separated three integers when decoding. Pure Kotlin (the Android SDK's uses a java.util.regex pattern), specific to the Data Connect wire format.

Link copied to clipboard
object TimestampSerializer : KSerializer<Timestamp>

Serializes a Timestamp as the RFC 3339 string of the Data Connect Timestamp scalar: always UTC with nine fractional digits when encoding (2024-01-02T03:04:05.123456789Z), any offset and up to nine fractional digits when decoding. Written over kotlin.time.Instant (the Android SDK's uses java.text.SimpleDateFormat), specific to the Data Connect wire format.