toMap

fun JSONObject.toMap(): Map<String, Any?>

Returns a new map containing all key-value pairs from the original map.