/**
 * Given a set of tuples containing key-value pairs, convert it into a dictionary and return the dictionary.
 */
fun setToDictionary(setData: Set<Pair<Any, Any>>): Map<Any, Any> {

    return mapOf(*setData.toTypedArray())
}
/**
 * Given a set of tuples containing key-value pairs, convert it into a dictionary and return the dictionary.
 */
fun setToDictionary(setData: Set<Pair<Any, Any>>): Map<Any, Any> {
/**
 * Given a set of tuples containing key-value pairs, convert it into a dictionary and return the dictionary.
 */
fun setToDictionary(setData: Set<Pair<Any, Any>>): Map<Any, Any> {

    return mapOf(*setData.toTypedArray())
}