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 RWZ extends TypeAdapter implements HJa { private Gson a; private PYE b; private InterfaceC15734iCu e; public RWZ(Gson gson, InterfaceC15734iCu interfaceC15734iCu, PYE pye) { this.a = gson; this.e = interfaceC15734iCu; this.b = pye; } @Override // com.google.gson.TypeAdapter public final void write(JsonWriter jsonWriter, Object obj) throws IOException { if (obj == null) { jsonWriter.nullValue(); return; } C4212bTg c4212bTg = (C4212bTg) obj; Gson gson = this.a; PYE pye = this.b; jsonWriter.beginObject(); if (c4212bTg != c4212bTg.d) { pye.c(jsonWriter, 100); JeC jeC = new JeC(); List list = c4212bTg.d; DTh.a(gson, jeC, list).write(jsonWriter, list); } if (c4212bTg != c4212bTg.a) { pye.c(jsonWriter, 121); C16364njQ c16364njQ = new C16364njQ(); List list2 = c4212bTg.a; DTh.a(gson, c16364njQ, list2).write(jsonWriter, list2); } if (c4212bTg != c4212bTg.c) { pye.c(jsonWriter, 72); Rad rad = new Rad(); List list3 = c4212bTg.c; DTh.a(gson, rad, list3).write(jsonWriter, list3); } pye.c(jsonWriter, 220); Class cls = Integer.TYPE; Integer valueOf = Integer.valueOf(c4212bTg.b); DTh.b(gson, cls, valueOf).write(jsonWriter, valueOf); if (c4212bTg != c4212bTg.e) { pye.c(jsonWriter, 537); PhZ phZ = new PhZ(); List list4 = c4212bTg.e; DTh.a(gson, phZ, list4).write(jsonWriter, list4); } pye.c(jsonWriter, 503); Class cls2 = Integer.TYPE; Integer valueOf2 = Integer.valueOf(c4212bTg.g); DTh.b(gson, cls2, valueOf2).write(jsonWriter, valueOf2); if (c4212bTg != c4212bTg.i) { pye.c(jsonWriter, 609); uRJ urj = new uRJ(); List list5 = c4212bTg.i; DTh.a(gson, urj, list5).write(jsonWriter, list5); } if (c4212bTg != c4212bTg.h) { pye.c(jsonWriter, 597); C17346vvA c17346vvA = new C17346vvA(); List list6 = c4212bTg.h; DTh.a(gson, c17346vvA, list6).write(jsonWriter, list6); } 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; } C4212bTg c4212bTg = new C4212bTg(); Gson gson = this.a; InterfaceC15734iCu interfaceC15734iCu = this.e; jsonReader.beginObject(); while (jsonReader.hasNext()) { int e = interfaceC15734iCu.e(jsonReader); boolean z = jsonReader.peek() != JsonToken.NULL; if (e != 11) { if (e != 169) { if (e != 300) { if (e != 373) { if (e != 536) { if (e != 621) { if (e != 659) { if (e != 689) { jsonReader.skipValue(); } else if (z) { c4212bTg.d = (List) gson.getAdapter(new JeC()).read2(jsonReader); } else { c4212bTg.d = null; jsonReader.nextNull(); } } else if (z) { c4212bTg.g = ((Integer) gson.getAdapter(Integer.class).read2(jsonReader)).intValue(); } else { jsonReader.nextNull(); } } else if (z) { c4212bTg.b = ((Integer) gson.getAdapter(Integer.class).read2(jsonReader)).intValue(); } else { jsonReader.nextNull(); } } else if (z) { c4212bTg.a = (List) gson.getAdapter(new C16364njQ()).read2(jsonReader); } else { c4212bTg.a = null; jsonReader.nextNull(); } } else if (z) { c4212bTg.h = (List) gson.getAdapter(new C17346vvA()).read2(jsonReader); } else { c4212bTg.h = null; jsonReader.nextNull(); } } else if (z) { c4212bTg.e = (List) gson.getAdapter(new PhZ()).read2(jsonReader); } else { c4212bTg.e = null; jsonReader.nextNull(); } } else if (z) { c4212bTg.c = (List) gson.getAdapter(new Rad()).read2(jsonReader); } else { c4212bTg.c = null; jsonReader.nextNull(); } } else if (z) { c4212bTg.i = (List) gson.getAdapter(new uRJ()).read2(jsonReader); } else { c4212bTg.i = null; jsonReader.nextNull(); } } jsonReader.endObject(); return c4212bTg; } }