package j1; import com.android.billingclient.api.f; import java.util.List; import java.util.Objects; import org.json.JSONObject; /* loaded from: classes.dex */ public class d { /* renamed from: a, reason: collision with root package name */ public String f11015a; /* renamed from: b, reason: collision with root package name */ public String f11016b; /* renamed from: c, reason: collision with root package name */ public boolean f11017c; /* renamed from: d, reason: collision with root package name */ public f f11018d; /* renamed from: e, reason: collision with root package name */ public String f11019e; public d(JSONObject jSONObject) { if (jSONObject.has("id")) { this.f11015a = jSONObject.getString("id"); } if (jSONObject.has("name")) { this.f11016b = jSONObject.getString("name"); } if (jSONObject.has("isSub")) { this.f11017c = jSONObject.getBoolean("isSub"); } } public void a(f fVar) { this.f11018d = fVar; if (!fVar.e().equals("subs")) { f.b c10 = fVar.c(); Objects.requireNonNull(c10); this.f11019e = c10.a(); } else { List f10 = fVar.f(); Objects.requireNonNull(f10); String a10 = ((f.c) ((f.e) f10.get(0)).b().a().get(0)).a(); Objects.requireNonNull(a10); this.f11019e = a10; } } }