using System.Collections.Generic; namespace UnityEngine.Monetization { internal class JavaMapUtilities { public static IDictionary GetDictionaryForJavaMap(AndroidJavaObject javaMap) { if (javaMap == null) { return new Dictionary(); } var jsonJavaObject = new AndroidJavaObject("org.json.JSONObject", javaMap); var json = jsonJavaObject.Call("toString"); var jsonObject = MiniJSON.Json.Deserialize(json); if (jsonObject is IDictionary objects) { return objects; } return new Dictionary(); } } }