Hi! I have the current code: ```@Serializable pri...
# serialization
c
Hi! I have the current code:
Copy code
@Serializable
private data class ApiUsernamePassword(val username: String, val password: String)
I use Ktor (it handles serialization itself). On Kotlin/JVM, the code runs fine, but on Kotlin/JS I get:
Copy code
SerializationException: Can't locate argument-less serializer for class ApiUsernamePassword. For generic classes, such as lists, please provide serializer explicitly.
	at <global>.serializer([REDACTED]/runtime/commonMain/src/kotlinx/serialization/PlatformUtils.kt:12)
I use version 0.14.0 of the serialization plugin, with Kotlin 1.3.61 and Gradle 6.0.1
t
You need Kotlin
1.3.60
for runtime
0.14.0
c
Ktor says they don't support it though...
c
Nevermind, I have Kotlin 1.3.61
t
Magic
private
modifier?