toJsonObject

fun Map<String, Any?>.toJsonObject(): JsonObject

Converts a standard Map to a JsonObject for internal API calls.