convertToJsonElement

fun Any?.convertToJsonElement(): JsonElement(source)