package com.ss.android.ugc.aweme.ecommerce.delivery.repo.dto;

import X.C18;
import X.M12;
import android.os.Parcel;
import android.os.Parcelable;
import com.bytedance.covode.number.Covode;
import com.google.gson.a.c;
import com.ss.android.ugc.aweme.ecommerce.ordercenter.repository.dto.Icon;
import java.util.Objects;

public final class DispatchTo implements Parcelable {
    public static final Parcelable.Creator<DispatchTo> CREATOR = new C18();
    @c(LIZ = "icon_to")
    public final Icon LIZ;

    static {
        Covode.recordClassIndex(69973);
    }

    private Object[] LIZ() {
        return new Object[]{this.LIZ};
    }

    public final int describeContents() {
        return 0;
    }

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

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

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

    public final void writeToParcel(Parcel parcel, int i) {
        M12.LIZ(parcel);
        Icon icon = this.LIZ;
        if (icon != null) {
            parcel.writeInt(1);
            icon.writeToParcel(parcel, 0);
            return;
        }
        parcel.writeInt(0);
    }

    public /* synthetic */ DispatchTo() {
        this((Icon) null);
    }

    public DispatchTo(Icon icon) {
        this.LIZ = icon;
    }
}
