what-the-bank/sources/o/C0132AAh.java

77 lines
3.4 KiB
Java

package o;
import com.google.gson.JsonDeserializationContext;
import com.google.gson.JsonDeserializer;
import com.google.gson.JsonElement;
import com.google.gson.JsonObject;
import com.google.gson.JsonParseException;
import com.google.gson.reflect.TypeToken;
import java.lang.reflect.Type;
import java.util.List;
/* renamed from: o.AAh, reason: case insensitive filesystem */
/* loaded from: classes.dex */
public final class C0132AAh implements JsonDeserializer<C4212bTg> {
@Override // com.google.gson.JsonDeserializer
public final /* synthetic */ C4212bTg deserialize(JsonElement jsonElement, Type type, JsonDeserializationContext jsonDeserializationContext) throws JsonParseException {
return d(jsonElement, jsonDeserializationContext);
}
private C4212bTg d(JsonElement jsonElement, JsonDeserializationContext jsonDeserializationContext) throws JsonParseException {
C4212bTg c4212bTg = new C4212bTg();
if (jsonElement.isJsonObject()) {
JsonObject asJsonObject = jsonElement.getAsJsonObject();
c4212bTg.g = asJsonObject.has("rootMaxNumberOfTiles") ? asJsonObject.get("rootMaxNumberOfTiles").getAsInt() : 0;
c4212bTg.b = asJsonObject.has("groupMaxNumberOfTiles") ? asJsonObject.get("groupMaxNumberOfTiles").getAsInt() : 0;
c4212bTg.i = asJsonObject.has("staticTiles") ? (List) jsonDeserializationContext.deserialize(asJsonObject.get("staticTiles"), new TypeToken<List<Rgo>>(this) { // from class: o.AAh.1
private C0132AAh c;
{
this.c = this;
}
}.getType()) : null;
c4212bTg.d = asJsonObject.has("adsTiles") ? (List) jsonDeserializationContext.deserialize(asJsonObject.get("adsTiles"), new TypeToken<List<Rgo>>(this) { // from class: o.AAh.5
private C0132AAh d;
{
this.d = this;
}
}.getType()) : null;
if (asJsonObject.has("dynamicTiles")) {
try {
try {
c4212bTg.c = (List) jsonDeserializationContext.deserialize(asJsonObject.get("dynamicTiles"), new TypeToken<List<C17104tuu>>(this) { // from class: o.AAh.3
private C0132AAh d;
{
this.d = this;
}
}.getType());
} catch (Exception unused) {
c4212bTg.c = null;
c4212bTg.e = null;
}
} catch (Exception unused2) {
c4212bTg.e = (List) jsonDeserializationContext.deserialize(asJsonObject.get("dynamicTiles"), new TypeToken<List<qRQ>>(this) { // from class: o.AAh.4
private C0132AAh c;
{
this.c = this;
}
}.getType());
}
}
if (asJsonObject.has("bankingServiceTiles")) {
c4212bTg.a = (List) jsonDeserializationContext.deserialize(asJsonObject.get("bankingServiceTiles"), new TypeToken<List<C16329nXS>>(this) { // from class: o.AAh.2
private C0132AAh b;
{
this.b = this;
}
}.getType());
}
}
return c4212bTg;
}
}