Laxystem
09/30/2024, 2:40 PMpublic data class Linked<out T>(
override val value: T,
override val identifier: String
)
Where it serializes `StructureKind.Class`es and `StructureKind.Map`s as:
{
"@id": "<identifier>",
// insert additional properties from the class
}
PrimitiveKind
as:
{
"@id": "<identifier>"
"@value": <value>
}
And ObjectKind
as: "<identifier>"
Laxystem
09/30/2024, 2:48 PM