package com.google.android.gms.internal.ads;

import android.os.Parcel;
import android.os.Parcelable;
import androidx.annotation.Nullable;
import java.util.ArrayList;
import java.util.List;
import org.json.JSONException;
import org.json.JSONObject;

/* JADX INFO: loaded from: classes2.dex */
public final class o10 extends f8.a {
    public static final Parcelable.Creator<o10> CREATOR = new wk(18);

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    public final String f14795a;

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public final String f14796b;

    /* JADX INFO: renamed from: c, reason: collision with root package name */
    public final boolean f14797c;

    /* JADX INFO: renamed from: d, reason: collision with root package name */
    public final boolean f14798d;

    /* JADX INFO: renamed from: e, reason: collision with root package name */
    public final List f14799e;

    /* JADX INFO: renamed from: f, reason: collision with root package name */
    public final boolean f14800f;

    /* JADX INFO: renamed from: g, reason: collision with root package name */
    public final boolean f14801g;

    /* JADX INFO: renamed from: h, reason: collision with root package name */
    public final List f14802h;

    public o10(String str, String str2, boolean z10, boolean z11, List list, boolean z12, boolean z13, List list2) {
        this.f14795a = str;
        this.f14796b = str2;
        this.f14797c = z10;
        this.f14798d = z11;
        this.f14799e = list;
        this.f14800f = z12;
        this.f14801g = z13;
        this.f14802h = list2 == null ? new ArrayList() : list2;
    }

    @Nullable
    public static o10 zza(JSONObject jSONObject) throws JSONException {
        return new o10(jSONObject.optString("click_string", ""), jSONObject.optString("report_url", ""), jSONObject.optBoolean("rendered_ad_enabled", false), jSONObject.optBoolean("non_malicious_reporting_enabled", false), p7.y.zza(jSONObject.optJSONArray("allowed_headers"), null), jSONObject.optBoolean("protection_enabled", false), jSONObject.optBoolean("malicious_reporting_enabled", false), p7.y.zza(jSONObject.optJSONArray("webview_permissions"), null));
    }

    @Override // android.os.Parcelable
    public final void writeToParcel(Parcel parcel, int i10) {
        int I = com.bumptech.glide.g.I(20293, parcel);
        com.bumptech.glide.g.r(parcel, 2, this.f14795a);
        com.bumptech.glide.g.r(parcel, 3, this.f14796b);
        com.bumptech.glide.g.C(parcel, 4, 4);
        parcel.writeInt(this.f14797c ? 1 : 0);
        com.bumptech.glide.g.C(parcel, 5, 4);
        parcel.writeInt(this.f14798d ? 1 : 0);
        com.bumptech.glide.g.t(parcel, 6, this.f14799e);
        com.bumptech.glide.g.C(parcel, 7, 4);
        parcel.writeInt(this.f14800f ? 1 : 0);
        com.bumptech.glide.g.C(parcel, 8, 4);
        parcel.writeInt(this.f14801g ? 1 : 0);
        com.bumptech.glide.g.t(parcel, 9, this.f14802h);
        com.bumptech.glide.g.N(I, parcel);
    }
}
