package o;

import org.json.JSONException;
import org.json.JSONObject;

/* compiled from: r8-map-id-3b7cc9102578c509342fa2f0fabed2bfc72239cd258d579fc679bfcbc198b048 */
/* renamed from: o.f30, reason: case insensitive filesystem */
/* loaded from: classes.dex */
public abstract class AbstractC1161f30 {
    public static final C0247Jn a;

    static {
        C2040oJ c2040oJ = new C2040oJ();
        C0286La c0286La = C0286La.a;
        c2040oJ.a(AbstractC1161f30.class, c0286La);
        c2040oJ.a(C1300gc.class, c0286La);
        a = new C0247Jn(20, c2040oJ);
    }

    public static C1300gc a(String str) throws JSONException {
        JSONObject jSONObject = new JSONObject(str);
        String string = jSONObject.getString("rolloutId");
        String string2 = jSONObject.getString("parameterKey");
        String string3 = jSONObject.getString("parameterValue");
        String string4 = jSONObject.getString("variantId");
        long j = jSONObject.getLong("templateVersion");
        if (string3.length() > 256) {
            string3 = string3.substring(0, 256);
        }
        return new C1300gc(string, string2, string3, string4, j);
    }
}
