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

113 lines
4.0 KiB
Java
Raw Normal View History

2024-07-27 18:17:47 +07:00
package o;
import com.google.gson.Gson;
import com.google.gson.JsonDeserializer;
import com.google.gson.JsonObject;
import com.google.gson.reflect.TypeToken;
import java.util.List;
/* loaded from: classes.dex */
public final class Eoc implements JsonDeserializer<NZw> {
private final Gson e;
public Eoc(Gson gson) {
C14957gcv.e(gson, "");
this.e = gson;
}
private static String e(JsonObject jsonObject) throws Exception {
C14957gcv.e(jsonObject, "");
try {
return jsonObject.get("isISO20022").getAsString();
} catch (Exception unused) {
return null;
}
}
private C17766zbW c(JsonObject jsonObject) throws Exception {
C14957gcv.e(jsonObject, "");
try {
return (C17766zbW) this.e.fromJson(jsonObject.getAsJsonObject("voidRemark").toString(), C17766zbW.class);
} catch (Exception unused) {
return null;
}
}
private static KDt a(JsonObject jsonObject, KDt kDt) throws Exception {
C14957gcv.e(jsonObject, "");
C14957gcv.e(kDt, "");
String asString = jsonObject.get("type").getAsString();
C14957gcv.c((Object) asString, "");
C14957gcv.e(asString, "");
kDt.i = asString;
if (jsonObject.has("paddingTop")) {
String asString2 = jsonObject.get("paddingTop").getAsString();
C14957gcv.c((Object) asString2, "");
C14957gcv.e(asString2, "");
kDt.f = asString2;
}
if (jsonObject.has("paddingBottom")) {
String asString3 = jsonObject.get("paddingBottom").getAsString();
C14957gcv.c((Object) asString3, "");
C14957gcv.e(asString3, "");
kDt.h = asString3;
}
if (jsonObject.has("hasSeparator")) {
kDt.d = jsonObject.get("hasSeparator").getAsBoolean();
}
if (jsonObject.has("isHiddenInSlip")) {
kDt.e = jsonObject.get("isHiddenInSlip").getAsBoolean();
}
return kDt;
}
/* loaded from: classes.dex */
public static final class RVV extends TypeToken<List<? extends String>> {
RVV() {
}
}
private static spQ d(JsonObject jsonObject) throws Exception {
C14957gcv.e(jsonObject, "");
spQ spq = new spQ();
String asString = jsonObject.get("type").getAsString();
C14957gcv.c((Object) asString, "");
C14957gcv.e(asString, "");
spq.a = asString;
if (jsonObject.has("text")) {
String asString2 = jsonObject.get("text").getAsString();
C14957gcv.c((Object) asString2, "");
C14957gcv.e(asString2, "");
spq.d = asString2;
}
return spq;
}
/* JADX WARN: Code restructure failed: missing block: B:52:0x01ed, code lost:
if (r12.equals("footer_content") != false) goto L60;
*/
/* JADX WARN: Code restructure failed: missing block: B:53:0x0234, code lost:
r12 = d(r11);
*/
/* JADX WARN: Code restructure failed: missing block: B:66:0x022d, code lost:
if (r12.equals("footer_remark") == false) goto L59;
*/
/* JADX WARN: Removed duplicated region for block: B:21:0x0186 */
/* JADX WARN: Removed duplicated region for block: B:24:0x0189 A[SYNTHETIC] */
@Override // com.google.gson.JsonDeserializer
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
public final /* synthetic */ o.NZw deserialize(com.google.gson.JsonElement r17, java.lang.reflect.Type r18, com.google.gson.JsonDeserializationContext r19) {
/*
Method dump skipped, instructions count: 612
To view this dump add '--comments-level debug' option
*/
throw new UnsupportedOperationException("Method not decompiled: o.Eoc.deserialize(com.google.gson.JsonElement, java.lang.reflect.Type, com.google.gson.JsonDeserializationContext):java.lang.Object");
}
}