convert

fun convert(type: String, value: Any?): JsonElement