54 lines
1.6 KiB
Java
54 lines
1.6 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;
|
|
|
|
/* renamed from: o.zBE, reason: case insensitive filesystem */
|
|
/* loaded from: classes.dex */
|
|
public final class C17711zBE extends TypeAdapter implements HJa {
|
|
private Gson a;
|
|
private InterfaceC15734iCu b;
|
|
private PYE e;
|
|
|
|
public C17711zBE(Gson gson, InterfaceC15734iCu interfaceC15734iCu, PYE pye) {
|
|
this.a = 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;
|
|
}
|
|
Gson gson = this.a;
|
|
PYE pye = this.e;
|
|
jsonWriter.beginObject();
|
|
((Pag) obj).c(gson, jsonWriter, pye);
|
|
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;
|
|
}
|
|
Pag pag = new Pag();
|
|
Gson gson = this.a;
|
|
InterfaceC15734iCu interfaceC15734iCu = this.b;
|
|
jsonReader.beginObject();
|
|
while (jsonReader.hasNext()) {
|
|
pag.e(gson, jsonReader, interfaceC15734iCu.e(jsonReader));
|
|
}
|
|
jsonReader.endObject();
|
|
return pag;
|
|
}
|
|
}
|