package o; import com.google.gson.Gson; import com.google.gson.TypeAdapter; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonToken; import com.google.gson.stream.JsonWriter; import java.io.IOException; import java.util.List; /* loaded from: classes.dex */ public final class xCA extends TypeAdapter implements HJa { private PYE a; private InterfaceC15734iCu d; private Gson e; public xCA(Gson gson, InterfaceC15734iCu interfaceC15734iCu, PYE pye) { this.e = gson; this.d = interfaceC15734iCu; this.a = pye; } @Override // com.google.gson.TypeAdapter public final void write(JsonWriter jsonWriter, Object obj) throws IOException { if (obj == null) { jsonWriter.nullValue(); return; } C7968cyO c7968cyO = (C7968cyO) obj; Gson gson = this.e; PYE pye = this.a; jsonWriter.beginObject(); if (c7968cyO != c7968cyO.e) { pye.c(jsonWriter, 294); C16968snr c16968snr = new C16968snr(); List list = c7968cyO.e; DTh.a(gson, c16968snr, list).write(jsonWriter, list); } if (c7968cyO != c7968cyO.c) { pye.c(jsonWriter, 541); VDs vDs = new VDs(); List list2 = c7968cyO.c; DTh.a(gson, vDs, list2).write(jsonWriter, list2); } if (c7968cyO != c7968cyO.b) { pye.c(jsonWriter, 417); C15377goq c15377goq = c7968cyO.b; DTh.b(gson, C15377goq.class, c15377goq).write(jsonWriter, c15377goq); } if (c7968cyO != c7968cyO.d) { pye.c(jsonWriter, 523); pPD ppd = new pPD(); List list3 = c7968cyO.d; DTh.a(gson, ppd, list3).write(jsonWriter, list3); } if (c7968cyO != c7968cyO.a) { pye.c(jsonWriter, 588); C16482ojI c16482ojI = new C16482ojI(); List list4 = c7968cyO.a; DTh.a(gson, c16482ojI, list4).write(jsonWriter, list4); } if (c7968cyO != c7968cyO.f) { pye.c(jsonWriter, 108); C16182lxN c16182lxN = new C16182lxN(); List list5 = c7968cyO.f; DTh.a(gson, c16182lxN, list5).write(jsonWriter, list5); } if (c7968cyO != c7968cyO.i) { pye.c(jsonWriter, 243); C9587dmZ c9587dmZ = new C9587dmZ(); List list6 = c7968cyO.i; DTh.a(gson, c9587dmZ, list6).write(jsonWriter, list6); } if (c7968cyO != c7968cyO.g) { pye.c(jsonWriter, 70); yrM yrm = new yrM(); List list7 = c7968cyO.g; DTh.a(gson, yrm, list7).write(jsonWriter, list7); } if (c7968cyO != c7968cyO.h) { pye.c(jsonWriter, 384); Gdg gdg = c7968cyO.h; DTh.b(gson, Gdg.class, gdg).write(jsonWriter, gdg); } if (c7968cyO != c7968cyO.j) { pye.c(jsonWriter, 608); Zab zab = new Zab(); List list8 = c7968cyO.j; DTh.a(gson, zab, list8).write(jsonWriter, list8); } jsonWriter.endObject(); } @Override // com.google.gson.TypeAdapter /* renamed from: read */ public final Object read2(JsonReader jsonReader) throws IOException { if (jsonReader.peek() == JsonToken.NULL) { jsonReader.skipValue(); return null; } C7968cyO c7968cyO = new C7968cyO(); Gson gson = this.e; InterfaceC15734iCu interfaceC15734iCu = this.d; jsonReader.beginObject(); while (jsonReader.hasNext()) { int e = interfaceC15734iCu.e(jsonReader); boolean z = jsonReader.peek() != JsonToken.NULL; if (e != 20) { if (e != 115) { if (e != 147) { if (e != 213) { if (e != 324) { if (e != 393) { if (e != 522) { if (e != 556) { if (e != 571) { if (e != 582) { jsonReader.skipValue(); } else if (z) { c7968cyO.e = (List) gson.getAdapter(new C16968snr()).read2(jsonReader); } else { c7968cyO.e = null; jsonReader.nextNull(); } } else if (z) { c7968cyO.c = (List) gson.getAdapter(new VDs()).read2(jsonReader); } else { c7968cyO.c = null; jsonReader.nextNull(); } } else if (z) { c7968cyO.h = (Gdg) gson.getAdapter(Gdg.class).read2(jsonReader); } else { c7968cyO.h = null; jsonReader.nextNull(); } } else if (z) { c7968cyO.g = (List) gson.getAdapter(new yrM()).read2(jsonReader); } else { c7968cyO.g = null; jsonReader.nextNull(); } } else if (z) { c7968cyO.d = (List) gson.getAdapter(new pPD()).read2(jsonReader); } else { c7968cyO.d = null; jsonReader.nextNull(); } } else if (z) { c7968cyO.f = (List) gson.getAdapter(new C16182lxN()).read2(jsonReader); } else { c7968cyO.f = null; jsonReader.nextNull(); } } else if (z) { c7968cyO.j = (List) gson.getAdapter(new Zab()).read2(jsonReader); } else { c7968cyO.j = null; jsonReader.nextNull(); } } else if (z) { c7968cyO.b = (C15377goq) gson.getAdapter(C15377goq.class).read2(jsonReader); } else { c7968cyO.b = null; jsonReader.nextNull(); } } else if (z) { c7968cyO.i = (List) gson.getAdapter(new C9587dmZ()).read2(jsonReader); } else { c7968cyO.i = null; jsonReader.nextNull(); } } else if (z) { c7968cyO.a = (List) gson.getAdapter(new C16482ojI()).read2(jsonReader); } else { c7968cyO.a = null; jsonReader.nextNull(); } } jsonReader.endObject(); return c7968cyO; } }