53 lines
1.5 KiB
Java
53 lines
1.5 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 RDE extends TypeAdapter implements HJa {
|
||
|
private InterfaceC15734iCu a;
|
||
|
private PYE b;
|
||
|
private Gson e;
|
||
|
|
||
|
public RDE(Gson gson, InterfaceC15734iCu interfaceC15734iCu, PYE pye) {
|
||
|
this.e = gson;
|
||
|
this.a = 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;
|
||
|
}
|
||
|
Gson gson = this.e;
|
||
|
PYE pye = this.b;
|
||
|
jsonWriter.beginObject();
|
||
|
((JZY) obj).b(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;
|
||
|
}
|
||
|
JZY jzy = new JZY();
|
||
|
Gson gson = this.e;
|
||
|
InterfaceC15734iCu interfaceC15734iCu = this.a;
|
||
|
jsonReader.beginObject();
|
||
|
while (jsonReader.hasNext()) {
|
||
|
jzy.a(gson, jsonReader, interfaceC15734iCu.e(jsonReader));
|
||
|
}
|
||
|
jsonReader.endObject();
|
||
|
return jzy;
|
||
|
}
|
||
|
}
|