package com.revenuecat.purchases.customercenter;

import com.revenuecat.purchases.customercenter.CustomerCenterConfigData;
import g5.a;
import i5.g;
import j5.b;
import j5.c;
import j5.d;
import java.util.Map;
import k5.A;
import k5.C2419g;
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 CustomerCenterConfigData$HelpPath$PathDetail$PromotionalOffer$$serializer implements A {
    public static final CustomerCenterConfigData$HelpPath$PathDetail$PromotionalOffer$$serializer INSTANCE;
    private static final /* synthetic */ S descriptor;

    static {
        CustomerCenterConfigData$HelpPath$PathDetail$PromotionalOffer$$serializer customerCenterConfigData$HelpPath$PathDetail$PromotionalOffer$$serializer = new CustomerCenterConfigData$HelpPath$PathDetail$PromotionalOffer$$serializer();
        INSTANCE = customerCenterConfigData$HelpPath$PathDetail$PromotionalOffer$$serializer;
        S s6 = new S("com.revenuecat.purchases.customercenter.CustomerCenterConfigData.HelpPath.PathDetail.PromotionalOffer", customerCenterConfigData$HelpPath$PathDetail$PromotionalOffer$$serializer, 6);
        s6.k("android_offer_id", false);
        s6.k("eligible", false);
        s6.k("title", false);
        s6.k("subtitle", false);
        s6.k("product_mapping", false);
        s6.k("cross_product_promotions", true);
        descriptor = s6;
    }

    private CustomerCenterConfigData$HelpPath$PathDetail$PromotionalOffer$$serializer() {
    }

    @Override // k5.A
    public a[] childSerializers() {
        a[] aVarArr = CustomerCenterConfigData.HelpPath.PathDetail.PromotionalOffer.$childSerializers;
        a aVar = aVarArr[4];
        a aVar2 = aVarArr[5];
        e0 e0Var = e0.f20048a;
        return new a[]{e0Var, C2419g.f20053a, e0Var, e0Var, aVar, aVar2};
    }

    @Override // g5.a
    public CustomerCenterConfigData.HelpPath.PathDetail.PromotionalOffer deserialize(c decoder) {
        o.h(decoder, "decoder");
        g descriptor2 = getDescriptor();
        j5.a aVarB = decoder.b(descriptor2);
        a[] aVarArr = CustomerCenterConfigData.HelpPath.PathDetail.PromotionalOffer.$childSerializers;
        int i6 = 0;
        boolean zX = false;
        String strC = null;
        String strC2 = null;
        String strC3 = null;
        Map map = null;
        Map map2 = 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:
                    zX = aVarB.x(descriptor2, 1);
                    i6 |= 2;
                    break;
                case 2:
                    strC2 = aVarB.C(descriptor2, 2);
                    i6 |= 4;
                    break;
                case 3:
                    strC3 = aVarB.C(descriptor2, 3);
                    i6 |= 8;
                    break;
                case 4:
                    map = (Map) aVarB.p(descriptor2, 4, aVarArr[4], map);
                    i6 |= 16;
                    break;
                case 5:
                    map2 = (Map) aVarB.p(descriptor2, 5, aVarArr[5], map2);
                    i6 |= 32;
                    break;
                default:
                    throw new g5.g(iK);
            }
        }
        aVarB.c(descriptor2);
        return new CustomerCenterConfigData.HelpPath.PathDetail.PromotionalOffer(i6, strC, zX, strC2, strC3, map, map2, (a0) null);
    }

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

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

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