Hello all, i'm trying to use kotlinx, but i'm gett...
# serialization
r
Hello all, i'm trying to use kotlinx, but i'm getting this error:
kotlinx.serialization.SerializationException: Serializer for class 'Immobile' is not found.
Mark the class as @Serializable or provide the serializer explicitly.
my config:
Copy code
import kotlinx.serialization.*

@Serializable
data class Immobile(
  val test: String
)
Copy code
fun Route.webProperties() {
  route("/home") {
    post {
      val properties = call.receive<Immobile>()
      call.respond(properties)
    }
  }
}
Copy code
install(ContentNegotiation) {
  json()
}
j
Did you apply the plugin?
r
OMG... thank you.. i forgot. Sorry.