package M5;

import E1.InterfaceC0100g;
import android.os.Bundle;
import android.os.Parcelable;
import com.martsnew.domain.model.Movie;
import java.io.Serializable;

/* JADX INFO: loaded from: classes.dex */
public final class k implements InterfaceC0100g {

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

    public k(Movie movie) {
        this.f4313a = movie;
    }

    public static final k fromBundle(Bundle bundle) {
        P6.g.e(bundle, "bundle");
        bundle.setClassLoader(k.class.getClassLoader());
        if (!bundle.containsKey("movie")) {
            throw new IllegalArgumentException("Required argument \"movie\" is missing and does not have an android:defaultValue");
        }
        if (!Parcelable.class.isAssignableFrom(Movie.class) && !Serializable.class.isAssignableFrom(Movie.class)) {
            throw new UnsupportedOperationException(Movie.class.getName().concat(" must implement Parcelable or Serializable or must be an Enum."));
        }
        Movie movie = (Movie) bundle.get("movie");
        if (movie != null) {
            return new k(movie);
        }
        throw new IllegalArgumentException("Argument \"movie\" is marked as non-null but was passed a null value.");
    }

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

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

    public final String toString() {
        return "TvMovieDetailFragmentArgs(movie=" + this.f4313a + ")";
    }
}
