what-the-bank/sources/o/gsC.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 gsC extends TypeAdapter implements HJa {
private PYE a;
private InterfaceC15734iCu d;
private Gson e;
public gsC(Gson gson, InterfaceC15734iCu interfaceC15734iCu, PYE pye) {
this.e = gson;
this.d = interfaceC15734iCu;
this.a = pye;
}
@Override // com.google.gson.TypeAdapter
public final void write(JsonWriter jsonWriter, Object obj) throws IOException {
if (obj == null) {
jsonWriter.nullValue();
} else {
((C15521gsq) obj).c(this.e, jsonWriter, this.a);
}
}
@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;
}
C15521gsq c15521gsq = new C15521gsq();
c15521gsq.d(this.e, jsonReader, this.d);
return c15521gsq;
}
}