@Serializable
@SerialName("data")
public data class DataMatcher(
public val predicate: Map<String, String>
) : ServerMatcher { ... }
where
ServerMatcher
is a sealed serializable interface.
I'm using 1.8.1.
➕ 1
a
Artem Kobzar
06/10/2025, 5:17 PM
@sandwwraith ^^
Artem Kobzar
06/10/2025, 5:18 PM
I have the same with Spring Boot
Artem Kobzar
06/10/2025, 5:18 PM
But even for a simple class like this:
Copy code
@Serializable
@kotlin.js.JsExport
data class OwnerFieldsDto(
val firstName: String,
val lastName: String,
val address: String,
val city: String,
val telephone: String
)