package com.revenuecat.purchases.common.networking;

import W.b;
import com.revenuecat.purchases.common.diagnostics.DiagnosticsTracker;
import g5.a;
import i5.g;
import j5.c;
import j5.d;
import java.util.Map;
import k5.A;
import k5.P;
import k5.S;
import k5.a0;
import k5.e0;
import kotlin.jvm.internal.o;
import w4.InterfaceC3141c;

/* JADX INFO: loaded from: classes3.dex */
@InterfaceC3141c
public final class WebBillingProductResponse$$serializer implements A {
    public static final WebBillingProductResponse$$serializer INSTANCE;
    private static final /* synthetic */ S descriptor;

    static {
        WebBillingProductResponse$$serializer webBillingProductResponse$$serializer = new WebBillingProductResponse$$serializer();
        INSTANCE = webBillingProductResponse$$serializer;
        S s6 = new S("com.revenuecat.purchases.common.networking.WebBillingProductResponse", webBillingProductResponse$$serializer, 6);
        s6.k("identifier", false);
        s6.k(DiagnosticsTracker.PRODUCT_TYPE_KEY, false);
        s6.k("title", false);
        s6.k("description", true);
        s6.k("default_purchase_option_id", true);
        s6.k("purchase_options", false);
        descriptor = s6;
    }

    private WebBillingProductResponse$$serializer() {
    }

    @Override // k5.A
    public a[] childSerializers() {
        a[] aVarArr = WebBillingProductResponse.$childSerializers;
        e0 e0Var = e0.f20048a;
        return new a[]{e0Var, e0Var, e0Var, b.h0(e0Var), b.h0(e0Var), aVarArr[5]};
    }

    @Override // g5.a
    public WebBillingProductResponse deserialize(c decoder) {
        o.h(decoder, "decoder");
        g descriptor2 = getDescriptor();
        j5.a aVarB = decoder.b(descriptor2);
        a[] aVarArr = WebBillingProductResponse.$childSerializers;
        int i6 = 0;
        String strC = null;
        String strC2 = null;
        String strC3 = null;
        String str = null;
        String str2 = null;
        Map map = null;
        boolean z6 = true;
        while (z6) {
            int iK = aVarB.k(descriptor2);
            switch (iK) {
                case -1:
                    z6 = false;
                    break;
                case 0:
                    strC = aVarB.C(descriptor2, 0);
                    i6 |= 1;
                    break;
                case 1:
                    strC2 = aVarB.C(descriptor2, 1);
                    i6 |= 2;
                    break;
                case 2:
                    strC3 = aVarB.C(descriptor2, 2);
                    i6 |= 4;
                    break;
                case 3:
                    str = (String) aVarB.r(descriptor2, 3, e0.f20048a, str);
                    i6 |= 8;
                    break;
                case 4:
                    str2 = (String) aVarB.r(descriptor2, 4, e0.f20048a, str2);
                    i6 |= 16;
                    break;
                case 5:
                    map = (Map) aVarB.p(descriptor2, 5, aVarArr[5], map);
                    i6 |= 32;
                    break;
                default:
                    throw new g5.g(iK);
            }
        }
        aVarB.c(descriptor2);
        return new WebBillingProductResponse(i6, strC, strC2, strC3, str, str2, map, (a0) null);
    }

    @Override // g5.a
    public g getDescriptor() {
        return descriptor;
    }

    @Override // g5.a
    public void serialize(d encoder, WebBillingProductResponse value) {
        o.h(encoder, "encoder");
        o.h(value, "value");
        g descriptor2 = getDescriptor();
        j5.b bVarB = encoder.b(descriptor2);
        WebBillingProductResponse.write$Self$purchases_defaultsBc8Release(value, bVarB, descriptor2);
        bVarB.c(descriptor2);
    }

    @Override // k5.A
    public a[] typeParametersSerializers() {
        return P.f20015b;
    }
}
