How would one go about doing something like this? ...
# serialization
l
How would one go about doing something like this?
Copy code
public data class Linked<out T>(
    override val value: T,
    override val identifier: String
)
Where it serializes `StructureKind.Class`es and `StructureKind.Map`s as:
Copy code
{
    "@id": "<identifier>",
    // insert additional properties from the class
}
PrimitiveKind
as:
Copy code
{
    "@id": "<identifier>"
    "@value": <value>
}
And
ObjectKind
as:
"<identifier>"
My current problem is that I cannot fetch the serializers of the additional properties for the class form; everything else should be fineish