- 28,932 files - Full Java source code - Smali files - Resources Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
29 lines
890 B
Java
29 lines
890 B
Java
package com.vungle.ads.internal.util;
|
|
|
|
import java.util.Map;
|
|
import kotlin.collections.MapsKt__MapsKt;
|
|
import kotlin.jvm.internal.Intrinsics;
|
|
import kotlinx.serialization.json.JsonElement;
|
|
import kotlinx.serialization.json.JsonElementKt;
|
|
import kotlinx.serialization.json.JsonObject;
|
|
|
|
/* loaded from: classes4.dex */
|
|
public final class JsonUtil {
|
|
public static final JsonUtil INSTANCE = new JsonUtil();
|
|
|
|
private JsonUtil() {
|
|
}
|
|
|
|
public final String getContentStringValue(JsonObject json, String key) {
|
|
Object value;
|
|
Intrinsics.checkNotNullParameter(json, "json");
|
|
Intrinsics.checkNotNullParameter(key, "key");
|
|
try {
|
|
value = MapsKt__MapsKt.getValue((Map) json, key);
|
|
return JsonElementKt.getJsonPrimitive((JsonElement) value).getContent();
|
|
} catch (Exception unused) {
|
|
return null;
|
|
}
|
|
}
|
|
}
|