Closed urosjarc closed 1 year ago
Oh I didn't see that you can serialize objects like this...
@Serializable
data class Test(
@Contextual val _id: Id<Test> = newId(),
val ime: String,
val priimek: String,
)
fun main() {
val test = Test(ime="asdf", priimek = "asdf")
println(test.json)
}
I use ...
And this code...
Is giving me an error