JSONSerializable

Represents an interface that provides functionality for serializing implementing classes into JSON format using kotlinx.serialization library.

Parameters

T

The type of the implementing class, which must also be JSONSerializable.

Inheritors

Functions

Link copied to clipboard
abstract fun getSerializer(): KSerializer<T>

Retrieves the serializer instance for the implementing class.

Link copied to clipboard
open override fun toStringDefault(): String

Provides a string representation of the implementing instance with default formatting.