package com.fyber.inneractive.sdk.config; import java.util.HashMap; import org.json.JSONArray; import org.json.JSONObject; /* loaded from: classes2.dex */ public final class i { public final HashMap a = new HashMap(); public i() { } public final void a(JSONObject jSONObject) { JSONArray names; JSONArray names2 = jSONObject.names(); for (int i = 0; i < names2.length(); i++) { String optString = names2.optString(i, null); JSONObject optJSONObject = jSONObject.optJSONObject(optString); h hVar = new h(); if (optJSONObject != null && (names = optJSONObject.names()) != null) { for (int i2 = 0; i2 < names.length(); i2++) { String optString2 = names.optString(i2, null); String optString3 = optJSONObject.optString(optString2, null); if (optString2 != null && optString3 != null) { hVar.a.put(optString2, optString3); } } } this.a.put(optString, hVar); } } public i(JSONObject jSONObject) { a(jSONObject); } }