package com.revenuecat.purchases.common.networking;

import g5.a;
import i5.g;
import j5.b;
import java.util.Map;
import k5.H;
import k5.P;
import k5.a0;
import k5.e0;
import kotlin.jvm.internal.h;
import kotlin.jvm.internal.o;
import q.AbstractC2761L;
import w4.InterfaceC3141c;

/* JADX INFO: loaded from: classes3.dex */
public final class WebBillingProductResponse {
    private final String defaultPurchaseOptionId;
    private final String description;
    private final String identifier;
    private final String productType;
    private final Map<String, WebBillingPurchaseOption> purchaseOptions;
    private final String title;
    public static final Companion Companion = new Companion(null);
    private static final a[] $childSerializers = {null, null, null, null, null, new H(e0.f20048a, WebBillingPurchaseOption$$serializer.INSTANCE)};

    public static final class Companion {
        public /* synthetic */ Companion(h hVar) {
            this();
        }

        public final a serializer() {
            return WebBillingProductResponse$$serializer.INSTANCE;
        }

        private Companion() {
        }
    }

    @InterfaceC3141c
    public /* synthetic */ WebBillingProductResponse(int i6, String str, String str2, String str3, String str4, String str5, Map map, a0 a0Var) {
        if (39 != (i6 & 39)) {
            P.h(i6, 39, WebBillingProductResponse$$serializer.INSTANCE.getDescriptor());
            throw null;
        }
        this.identifier = str;
        this.productType = str2;
        this.title = str3;
        if ((i6 & 8) == 0) {
            this.description = null;
        } else {
            this.description = str4;
        }
        if ((i6 & 16) == 0) {
            this.defaultPurchaseOptionId = null;
        } else {
            this.defaultPurchaseOptionId = str5;
        }
        this.purchaseOptions = map;
    }

    /* JADX WARN: Multi-variable type inference failed */
    public static /* synthetic */ WebBillingProductResponse copy$default(WebBillingProductResponse webBillingProductResponse, String str, String str2, String str3, String str4, String str5, Map map, int i6, Object obj) {
        if ((i6 & 1) != 0) {
            str = webBillingProductResponse.identifier;
        }
        if ((i6 & 2) != 0) {
            str2 = webBillingProductResponse.productType;
        }
        if ((i6 & 4) != 0) {
            str3 = webBillingProductResponse.title;
        }
        if ((i6 & 8) != 0) {
            str4 = webBillingProductResponse.description;
        }
        if ((i6 & 16) != 0) {
            str5 = webBillingProductResponse.defaultPurchaseOptionId;
        }
        if ((i6 & 32) != 0) {
            map = webBillingProductResponse.purchaseOptions;
        }
        String str6 = str5;
        Map map2 = map;
        return webBillingProductResponse.copy(str, str2, str3, str4, str6, map2);
    }

    public static /* synthetic */ void getDefaultPurchaseOptionId$annotations() {
    }

    public static /* synthetic */ void getProductType$annotations() {
    }

    public static /* synthetic */ void getPurchaseOptions$annotations() {
    }

    public static final /* synthetic */ void write$Self$purchases_defaultsBc8Release(WebBillingProductResponse webBillingProductResponse, b bVar, g gVar) {
        a[] aVarArr = $childSerializers;
        bVar.A(gVar, 0, webBillingProductResponse.identifier);
        bVar.A(gVar, 1, webBillingProductResponse.productType);
        bVar.A(gVar, 2, webBillingProductResponse.title);
        if (bVar.g(gVar) || webBillingProductResponse.description != null) {
            bVar.E(gVar, 3, e0.f20048a, webBillingProductResponse.description);
        }
        if (bVar.g(gVar) || webBillingProductResponse.defaultPurchaseOptionId != null) {
            bVar.E(gVar, 4, e0.f20048a, webBillingProductResponse.defaultPurchaseOptionId);
        }
        bVar.z(gVar, 5, aVarArr[5], webBillingProductResponse.purchaseOptions);
    }

    public final String component1() {
        return this.identifier;
    }

    public final String component2() {
        return this.productType;
    }

    public final String component3() {
        return this.title;
    }

    public final String component4() {
        return this.description;
    }

    public final String component5() {
        return this.defaultPurchaseOptionId;
    }

    public final Map<String, WebBillingPurchaseOption> component6() {
        return this.purchaseOptions;
    }

    public final WebBillingProductResponse copy(String identifier, String productType, String title, String str, String str2, Map<String, WebBillingPurchaseOption> purchaseOptions) {
        o.h(identifier, "identifier");
        o.h(productType, "productType");
        o.h(title, "title");
        o.h(purchaseOptions, "purchaseOptions");
        return new WebBillingProductResponse(identifier, productType, title, str, str2, purchaseOptions);
    }

    public boolean equals(Object obj) {
        if (this == obj) {
            return true;
        }
        if (!(obj instanceof WebBillingProductResponse)) {
            return false;
        }
        WebBillingProductResponse webBillingProductResponse = (WebBillingProductResponse) obj;
        return o.c(this.identifier, webBillingProductResponse.identifier) && o.c(this.productType, webBillingProductResponse.productType) && o.c(this.title, webBillingProductResponse.title) && o.c(this.description, webBillingProductResponse.description) && o.c(this.defaultPurchaseOptionId, webBillingProductResponse.defaultPurchaseOptionId) && o.c(this.purchaseOptions, webBillingProductResponse.purchaseOptions);
    }

    public final String getDefaultPurchaseOptionId() {
        return this.defaultPurchaseOptionId;
    }

    public final String getDescription() {
        return this.description;
    }

    public final String getIdentifier() {
        return this.identifier;
    }

    public final String getProductType() {
        return this.productType;
    }

    public final Map<String, WebBillingPurchaseOption> getPurchaseOptions() {
        return this.purchaseOptions;
    }

    public final String getTitle() {
        return this.title;
    }

    public int hashCode() {
        int iB = AbstractC2761L.b(AbstractC2761L.b(this.identifier.hashCode() * 31, 31, this.productType), 31, this.title);
        String str = this.description;
        int iHashCode = (iB + (str == null ? 0 : str.hashCode())) * 31;
        String str2 = this.defaultPurchaseOptionId;
        return this.purchaseOptions.hashCode() + ((iHashCode + (str2 != null ? str2.hashCode() : 0)) * 31);
    }

    public String toString() {
        return "WebBillingProductResponse(identifier=" + this.identifier + ", productType=" + this.productType + ", title=" + this.title + ", description=" + this.description + ", defaultPurchaseOptionId=" + this.defaultPurchaseOptionId + ", purchaseOptions=" + this.purchaseOptions + ')';
    }

    public WebBillingProductResponse(String identifier, String productType, String title, String str, String str2, Map<String, WebBillingPurchaseOption> purchaseOptions) {
        o.h(identifier, "identifier");
        o.h(productType, "productType");
        o.h(title, "title");
        o.h(purchaseOptions, "purchaseOptions");
        this.identifier = identifier;
        this.productType = productType;
        this.title = title;
        this.description = str;
        this.defaultPurchaseOptionId = str2;
        this.purchaseOptions = purchaseOptions;
    }

    /* JADX WARN: Illegal instructions before constructor call */
    public /* synthetic */ WebBillingProductResponse(String str, String str2, String str3, String str4, String str5, Map map, int i6, h hVar) {
        Map map2;
        String str6;
        str4 = (i6 & 8) != 0 ? null : str4;
        if ((i6 & 16) != 0) {
            map2 = map;
            str6 = null;
        } else {
            map2 = map;
            str6 = str5;
        }
        this(str, str2, str3, str4, str6, map2);
    }
}
