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; /* loaded from: classes.dex */ public final class Acu extends TypeAdapter implements HJa { private Gson b; private PYE d; private InterfaceC15734iCu e; public Acu(Gson gson, InterfaceC15734iCu interfaceC15734iCu, PYE pye) { this.b = gson; this.e = interfaceC15734iCu; this.d = pye; } @Override // com.google.gson.TypeAdapter public final void write(JsonWriter jsonWriter, Object obj) throws IOException { if (obj == null) { jsonWriter.nullValue(); return; } iJI iji = (iJI) obj; Gson gson = this.b; PYE pye = this.d; jsonWriter.beginObject(); if (iji != iji.a) { pye.c(jsonWriter, 439); String str = iji.a; DTh.b(gson, String.class, str).write(jsonWriter, str); } if (iji != iji.d) { pye.c(jsonWriter, 533); String str2 = iji.d; DTh.b(gson, String.class, str2).write(jsonWriter, str2); } if (iji != iji.b) { pye.c(jsonWriter, 277); String str3 = iji.b; DTh.b(gson, String.class, str3).write(jsonWriter, str3); } if (iji != iji.e) { pye.c(jsonWriter, 483); String str4 = iji.e; DTh.b(gson, String.class, str4).write(jsonWriter, str4); } 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; } iJI iji = new iJI(); Gson gson = this.b; InterfaceC15734iCu interfaceC15734iCu = this.e; jsonReader.beginObject(); while (jsonReader.hasNext()) { int e = interfaceC15734iCu.e(jsonReader); boolean z = jsonReader.peek() != JsonToken.NULL; if (e != 133) { if (e != 239) { if (e != 428) { if (e != 478) { jsonReader.skipValue(); } else if (z) { iji.a = (String) gson.getAdapter(String.class).read2(jsonReader); } else { iji.a = null; jsonReader.nextNull(); } } else if (z) { iji.e = (String) gson.getAdapter(String.class).read2(jsonReader); } else { iji.e = null; jsonReader.nextNull(); } } else if (z) { iji.d = (String) gson.getAdapter(String.class).read2(jsonReader); } else { iji.d = null; jsonReader.nextNull(); } } else if (z) { iji.b = (String) gson.getAdapter(String.class).read2(jsonReader); } else { iji.b = null; jsonReader.nextNull(); } } jsonReader.endObject(); return iji; } }