package t5; import org.json.JSONObject; /* loaded from: classes2.dex */ public class b { /* renamed from: a, reason: collision with root package name */ private final g f14354a; /* renamed from: b, reason: collision with root package name */ private final g f14355b; /* renamed from: c, reason: collision with root package name */ private final boolean f14356c; /* renamed from: d, reason: collision with root package name */ private final e f14357d; /* renamed from: e, reason: collision with root package name */ private final f f14358e; private b(e eVar, f fVar, g gVar, g gVar2, boolean z10) { this.f14357d = eVar; this.f14358e = fVar; this.f14354a = gVar; if (gVar2 == null) { this.f14355b = g.NONE; } else { this.f14355b = gVar2; } this.f14356c = z10; } public static b a(e eVar, f fVar, g gVar, g gVar2, boolean z10) { w5.e.b(eVar, "CreativeType is null"); w5.e.b(fVar, "ImpressionType is null"); w5.e.b(gVar, "Impression owner is null"); w5.e.e(gVar, eVar, fVar); return new b(eVar, fVar, gVar, gVar2, z10); } public JSONObject b() { JSONObject jSONObject = new JSONObject(); w5.b.f(jSONObject, "impressionOwner", this.f14354a); w5.b.f(jSONObject, "mediaEventsOwner", this.f14355b); w5.b.f(jSONObject, "creativeType", this.f14357d); w5.b.f(jSONObject, "impressionType", this.f14358e); w5.b.f(jSONObject, "isolateVerificationScripts", Boolean.valueOf(this.f14356c)); return jSONObject; } }