what-the-bank/sources/o/AtQ.java

69 lines
2.0 KiB
Java

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 AtQ extends TypeAdapter implements HJa {
private InterfaceC15734iCu b;
private Gson c;
private PYE e;
public AtQ(Gson gson, InterfaceC15734iCu interfaceC15734iCu, PYE pye) {
this.c = gson;
this.b = interfaceC15734iCu;
this.e = pye;
}
@Override // com.google.gson.TypeAdapter
public final void write(JsonWriter jsonWriter, Object obj) throws IOException {
if (obj == null) {
jsonWriter.nullValue();
return;
}
TIx tIx = (TIx) obj;
Gson gson = this.c;
PYE pye = this.e;
jsonWriter.beginObject();
if (tIx != tIx.e) {
pye.c(jsonWriter, 457);
Jwl jwl = new Jwl();
List<jwX> list = tIx.e;
DTh.a(gson, jwl, list).write(jsonWriter, list);
}
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;
}
TIx tIx = new TIx();
Gson gson = this.c;
InterfaceC15734iCu interfaceC15734iCu = this.b;
jsonReader.beginObject();
while (jsonReader.hasNext()) {
int e = interfaceC15734iCu.e(jsonReader);
boolean z = jsonReader.peek() != JsonToken.NULL;
if (e != 286) {
jsonReader.skipValue();
} else if (z) {
tIx.e = (List) gson.getAdapter(new Jwl()).read2(jsonReader);
} else {
tIx.e = null;
jsonReader.nextNull();
}
}
jsonReader.endObject();
return tIx;
}
}