Companion

Default singleton-format and a lightweight builder API.

You can configure a custom instance via BoomerangFormat { ... } and assign it to BoomerangConfig.format to affect the extension helpers in this module.

Types

Link copied to clipboard
class Builder

Builder used by BoomerangFormat { ... } for configuring a custom instance.

Properties

Link copied to clipboard
val serializersModule: SerializersModule

The Kotlinx Serialization SerializersModule used for resolving contextual, polymorphic, and custom serializers during encode/decode. Defaults to EmptySerializersModule.

Functions

Link copied to clipboard
inline fun <T : Any> deserialize(boomerang: Boomerang): T

Deserializes a value of type T from the provided boomerang.

Link copied to clipboard

Creates a new BoomerangFormat using the provided block to configure Builder options.

Link copied to clipboard
inline fun <T : Any> serialize(value: T): Boomerang

Serializes the given value of type T into a Boomerang.