package r5;

import E1.B;
import android.os.Bundle;
import android.os.Parcelable;
import com.martsnew.domain.model.LatestVersion;
import com.martsnew.tv.R;
import java.io.Serializable;

/* JADX INFO: renamed from: r5.m, reason: case insensitive filesystem */
/* JADX INFO: loaded from: classes.dex */
public final class C1508m implements B {

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    public final LatestVersion f16578a;

    public C1508m(LatestVersion latestVersion) {
        P6.g.e(latestVersion, "version");
        this.f16578a = latestVersion;
    }

    @Override // E1.B
    public final int a() {
        return R.id.goToUpdate;
    }

    @Override // E1.B
    public final Bundle b() {
        Bundle bundle = new Bundle();
        boolean zIsAssignableFrom = Parcelable.class.isAssignableFrom(LatestVersion.class);
        Parcelable parcelable = this.f16578a;
        if (zIsAssignableFrom) {
            P6.g.c(parcelable, "null cannot be cast to non-null type android.os.Parcelable");
            bundle.putParcelable("version", parcelable);
            return bundle;
        }
        if (!Serializable.class.isAssignableFrom(LatestVersion.class)) {
            throw new UnsupportedOperationException(LatestVersion.class.getName().concat(" must implement Parcelable or Serializable or must be an Enum."));
        }
        P6.g.c(parcelable, "null cannot be cast to non-null type java.io.Serializable");
        bundle.putSerializable("version", (Serializable) parcelable);
        return bundle;
    }

    public final boolean equals(Object obj) {
        if (this == obj) {
            return true;
        }
        return (obj instanceof C1508m) && P6.g.a(this.f16578a, ((C1508m) obj).f16578a);
    }

    public final int hashCode() {
        return this.f16578a.hashCode();
    }

    public final String toString() {
        return "GoToUpdate(version=" + this.f16578a + ")";
    }
}
