val session : SignedIn = getSession()
println(Json.encodeToString(session)) // fails with: Serializer for class 'SignedIn' is not found.
println(Json.encodeToString(SignedIn,session)) // passes
println(Json.encodeToString(SignedIn.serializer(),session)) // won't compile
Why can't the compiler find the custom serializer??