package com.ss.android.ugc.aweme.ecommerce.sku.model.dto;

import X.C6054CMw;
import X.M12;
import android.os.Parcel;
import android.os.Parcelable;
import com.bytedance.covode.number.Covode;
import com.google.gson.a.c;
import java.util.List;
import java.util.Objects;

public final class SaleProp implements Parcelable {
    public static final Parcelable.Creator<SaleProp> CREATOR = new C6054CMw();
    @c(LIZ = "prop_id")
    public final String LIZ;
    @c(LIZ = "prop_name")
    public final String LIZIZ;
    @c(LIZ = "has_image")
    public final Boolean LIZJ;
    @c(LIZ = "sale_prop_values")
    public final List<SalePropValue> LIZLLL;

    static {
        Covode.recordClassIndex(72617);
    }

    private Object[] LIZ() {
        return new Object[]{this.LIZ, this.LIZIZ, this.LIZJ, this.LIZLLL};
    }

    public final int describeContents() {
        return 0;
    }

    public final boolean equals(Object obj) {
        if (this == obj) {
            return true;
        }
        if (!(obj instanceof SaleProp)) {
            return false;
        }
        return M12.LIZ(((SaleProp) obj).LIZ(), LIZ());
    }

    public final int hashCode() {
        return Objects.hash(LIZ());
    }

    public final String toString() {
        return M12.LIZ("SaleProp:%s,%s,%s,%s", LIZ());
    }

    public final void writeToParcel(Parcel parcel, int i) {
        M12.LIZ(parcel);
        parcel.writeString(this.LIZ);
        parcel.writeString(this.LIZIZ);
        Boolean bool = this.LIZJ;
        if (bool != null) {
            parcel.writeInt(1);
            parcel.writeInt(bool.booleanValue() ? 1 : 0);
        } else {
            parcel.writeInt(0);
        }
        List<SalePropValue> list = this.LIZLLL;
        if (list != null) {
            parcel.writeInt(1);
            parcel.writeInt(list.size());
            for (SalePropValue writeToParcel : list) {
                writeToParcel.writeToParcel(parcel, 0);
            }
            return;
        }
        parcel.writeInt(0);
    }

    public SaleProp(String str, String str2, Boolean bool, List<SalePropValue> list) {
        this.LIZ = str;
        this.LIZIZ = str2;
        this.LIZJ = bool;
        this.LIZLLL = list;
    }
}
