43 lines
1.2 KiB
Java
43 lines
1.2 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 tsB extends TypeAdapter implements HJa {
|
|
private InterfaceC15734iCu b;
|
|
private Gson c;
|
|
private PYE e;
|
|
|
|
public tsB(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();
|
|
} else {
|
|
((LdB) obj).b(this.c, jsonWriter, this.e);
|
|
}
|
|
}
|
|
|
|
@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;
|
|
}
|
|
LdB ldB = new LdB();
|
|
ldB.e(this.c, jsonReader, this.b);
|
|
return ldB;
|
|
}
|
|
}
|