I'm trying to convert a kotlin dataclass to a JsonElement, is there a way to do it using kotlin?
@Serializable
data class SubjectContext(
val name: String,
var programContext: Properties? = null
)
@Serializable
data class Properties(
val color: String,
var large: Int
)