package com.revenuecat.purchases.utils;

import android.os.Parcel;
import kotlin.jvm.internal.o;
import org.json.JSONObject;
import w4.j;

/* JADX INFO: loaded from: classes3.dex */
public final class JSONObjectParceler {
    public static final JSONObjectParceler INSTANCE = new JSONObjectParceler();

    private JSONObjectParceler() {
    }

    public JSONObject create(Parcel parcel) {
        o.h(parcel, "parcel");
        return new JSONObject(parcel.readString());
    }

    public JSONObject[] newArray(int i6) {
        throw new j("Generated by Android Extensions automatically");
    }

    public void write(JSONObject jSONObject, Parcel parcel, int i6) {
        o.h(jSONObject, "<this>");
        o.h(parcel, "parcel");
        parcel.writeString(jSONObject.toString());
    }
}
