package com.ironsource; import com.ironsource.mediationsdk.logger.IronLog; import com.ironsource.v8; import org.json.JSONException; import org.json.JSONObject; /* loaded from: classes2.dex */ public class nj { private String a; private JSONObject b; private String c; private String d; public nj(JSONObject jSONObject) { this.a = jSONObject.optString(v8.f.b); this.b = jSONObject.optJSONObject(v8.f.c); this.c = jSONObject.optString("success"); this.d = jSONObject.optString(v8.f.e); } public String a() { return this.d; } public String b() { return this.a; } public JSONObject c() { return this.b; } public String d() { return this.c; } public JSONObject e() { JSONObject jSONObject = new JSONObject(); try { jSONObject.put(v8.f.b, this.a); jSONObject.put(v8.f.c, this.b); jSONObject.put("success", this.c); jSONObject.put(v8.f.e, this.d); } catch (JSONException e) { i9.d().a(e); IronLog.INTERNAL.error(e.toString()); } return jSONObject; } }