<init>

KotlinxSerializer(json: Json = Json.plain)

A JsonSerializer implemented for kotlinx Serializable classes. Since serializers are determined statically, you must set the mapping for each Serializable class to it’s KSerializer manually, using setMapper or register.

KotlinxSerializer().apply {
    register<MySerializable>()
}