177 lines
6.9 KiB
Java
177 lines
6.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;
|
||
|
import o.LhO;
|
||
|
import org.jmrtd.PassportService;
|
||
|
|
||
|
/* loaded from: classes.dex */
|
||
|
public final class Oeb extends TypeAdapter implements HJa {
|
||
|
private PYE b;
|
||
|
private Gson d;
|
||
|
private InterfaceC15734iCu e;
|
||
|
|
||
|
public Oeb(Gson gson, InterfaceC15734iCu interfaceC15734iCu, PYE pye) {
|
||
|
this.d = 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;
|
||
|
}
|
||
|
LhO lhO = (LhO) obj;
|
||
|
Gson gson = this.d;
|
||
|
PYE pye = this.b;
|
||
|
jsonWriter.beginObject();
|
||
|
if (lhO != lhO.a) {
|
||
|
pye.c(jsonWriter, 404);
|
||
|
String str = lhO.a;
|
||
|
DTh.b(gson, String.class, str).write(jsonWriter, str);
|
||
|
}
|
||
|
if (lhO != lhO.b) {
|
||
|
pye.c(jsonWriter, 266);
|
||
|
String str2 = lhO.b;
|
||
|
DTh.b(gson, String.class, str2).write(jsonWriter, str2);
|
||
|
}
|
||
|
if (lhO != lhO.c) {
|
||
|
pye.c(jsonWriter, 687);
|
||
|
TfH tfH = lhO.c;
|
||
|
DTh.b(gson, TfH.class, tfH).write(jsonWriter, tfH);
|
||
|
}
|
||
|
if (lhO != lhO.e) {
|
||
|
pye.c(jsonWriter, 610);
|
||
|
TfH tfH2 = lhO.e;
|
||
|
DTh.b(gson, TfH.class, tfH2).write(jsonWriter, tfH2);
|
||
|
}
|
||
|
if (lhO != lhO.d) {
|
||
|
pye.c(jsonWriter, 533);
|
||
|
TfH tfH3 = lhO.d;
|
||
|
DTh.b(gson, TfH.class, tfH3).write(jsonWriter, tfH3);
|
||
|
}
|
||
|
if (lhO != lhO.g) {
|
||
|
pye.c(jsonWriter, 532);
|
||
|
LhO.LWm lWm = lhO.g;
|
||
|
DTh.b(gson, LhO.LWm.class, lWm).write(jsonWriter, lWm);
|
||
|
}
|
||
|
if (lhO != lhO.j) {
|
||
|
pye.c(jsonWriter, 67);
|
||
|
LhO.RVV rvv = lhO.j;
|
||
|
DTh.b(gson, LhO.RVV.class, rvv).write(jsonWriter, rvv);
|
||
|
}
|
||
|
if (lhO != lhO.i) {
|
||
|
pye.c(jsonWriter, 277);
|
||
|
TfH tfH4 = lhO.i;
|
||
|
DTh.b(gson, TfH.class, tfH4).write(jsonWriter, tfH4);
|
||
|
}
|
||
|
if (lhO != lhO.h) {
|
||
|
pye.c(jsonWriter, 295);
|
||
|
String str3 = lhO.h;
|
||
|
DTh.b(gson, String.class, str3).write(jsonWriter, str3);
|
||
|
}
|
||
|
if (lhO != lhO.f) {
|
||
|
pye.c(jsonWriter, PassportService.DEFAULT_MAX_BLOCKSIZE);
|
||
|
TfH tfH5 = lhO.f;
|
||
|
DTh.b(gson, TfH.class, tfH5).write(jsonWriter, tfH5);
|
||
|
}
|
||
|
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;
|
||
|
}
|
||
|
LhO lhO = new LhO();
|
||
|
Gson gson = this.d;
|
||
|
InterfaceC15734iCu interfaceC15734iCu = this.e;
|
||
|
jsonReader.beginObject();
|
||
|
while (jsonReader.hasNext()) {
|
||
|
int e = interfaceC15734iCu.e(jsonReader);
|
||
|
boolean z = jsonReader.peek() != JsonToken.NULL;
|
||
|
if (e != 12) {
|
||
|
if (e != 55) {
|
||
|
if (e != 133) {
|
||
|
if (e != 239) {
|
||
|
if (e != 508) {
|
||
|
if (e != 606) {
|
||
|
if (e != 618) {
|
||
|
if (e != 652) {
|
||
|
if (e != 666) {
|
||
|
if (e != 675) {
|
||
|
jsonReader.skipValue();
|
||
|
} else if (z) {
|
||
|
lhO.a = (String) gson.getAdapter(String.class).read2(jsonReader);
|
||
|
} else {
|
||
|
lhO.a = null;
|
||
|
jsonReader.nextNull();
|
||
|
}
|
||
|
} else if (z) {
|
||
|
lhO.e = (TfH) gson.getAdapter(TfH.class).read2(jsonReader);
|
||
|
} else {
|
||
|
lhO.e = null;
|
||
|
jsonReader.nextNull();
|
||
|
}
|
||
|
} else if (z) {
|
||
|
lhO.h = (String) gson.getAdapter(String.class).read2(jsonReader);
|
||
|
} else {
|
||
|
lhO.h = null;
|
||
|
jsonReader.nextNull();
|
||
|
}
|
||
|
} else if (z) {
|
||
|
lhO.c = (TfH) gson.getAdapter(TfH.class).read2(jsonReader);
|
||
|
} else {
|
||
|
lhO.c = null;
|
||
|
jsonReader.nextNull();
|
||
|
}
|
||
|
} else if (z) {
|
||
|
lhO.j = (LhO.RVV) gson.getAdapter(LhO.RVV.class).read2(jsonReader);
|
||
|
} else {
|
||
|
lhO.j = null;
|
||
|
jsonReader.nextNull();
|
||
|
}
|
||
|
} else if (z) {
|
||
|
lhO.g = (LhO.LWm) gson.getAdapter(LhO.LWm.class).read2(jsonReader);
|
||
|
} else {
|
||
|
lhO.g = null;
|
||
|
jsonReader.nextNull();
|
||
|
}
|
||
|
} else if (z) {
|
||
|
lhO.d = (TfH) gson.getAdapter(TfH.class).read2(jsonReader);
|
||
|
} else {
|
||
|
lhO.d = null;
|
||
|
jsonReader.nextNull();
|
||
|
}
|
||
|
} else if (z) {
|
||
|
lhO.i = (TfH) gson.getAdapter(TfH.class).read2(jsonReader);
|
||
|
} else {
|
||
|
lhO.i = null;
|
||
|
jsonReader.nextNull();
|
||
|
}
|
||
|
} else if (z) {
|
||
|
lhO.f = (TfH) gson.getAdapter(TfH.class).read2(jsonReader);
|
||
|
} else {
|
||
|
lhO.f = null;
|
||
|
jsonReader.nextNull();
|
||
|
}
|
||
|
} else if (z) {
|
||
|
lhO.b = (String) gson.getAdapter(String.class).read2(jsonReader);
|
||
|
} else {
|
||
|
lhO.b = null;
|
||
|
jsonReader.nextNull();
|
||
|
}
|
||
|
}
|
||
|
jsonReader.endObject();
|
||
|
return lhO;
|
||
|
}
|
||
|
}
|