66 lines
1.9 KiB
Java
66 lines
1.9 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;
|
|
|
|
/* loaded from: classes.dex */
|
|
public final class IJ extends TypeAdapter implements HJa {
|
|
private Gson c;
|
|
private InterfaceC15734iCu d;
|
|
private PYE e;
|
|
|
|
public IJ(Gson gson, InterfaceC15734iCu interfaceC15734iCu, PYE pye) {
|
|
this.c = gson;
|
|
this.d = 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;
|
|
}
|
|
IG ig = (IG) obj;
|
|
Gson gson = this.c;
|
|
PYE pye = this.e;
|
|
jsonWriter.beginObject();
|
|
IM im = ig.a;
|
|
pye.c(jsonWriter, 553);
|
|
IM im2 = ig.a;
|
|
DTh.b(gson, IM.class, im2).write(jsonWriter, im2);
|
|
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;
|
|
}
|
|
IG ig = new IG();
|
|
Gson gson = this.c;
|
|
InterfaceC15734iCu interfaceC15734iCu = this.d;
|
|
jsonReader.beginObject();
|
|
while (jsonReader.hasNext()) {
|
|
int e = interfaceC15734iCu.e(jsonReader);
|
|
boolean z = jsonReader.peek() != JsonToken.NULL;
|
|
if (e != 532) {
|
|
jsonReader.skipValue();
|
|
} else if (z) {
|
|
ig.a = (IM) gson.getAdapter(IM.class).read2(jsonReader);
|
|
} else {
|
|
ig.a = null;
|
|
jsonReader.nextNull();
|
|
}
|
|
}
|
|
jsonReader.endObject();
|
|
return ig;
|
|
}
|
|
}
|