public static ContentValues convertMovie(Movie movie) { ContentValues values = new ContentValues(); values.put(PopularMoviesContract.MovieEntry.COLUMN_MOVIE_ID, movie.getMovieId()); values.put(PopularMoviesContract.MovieEntry.COLUMN_TITLE, movie.getTitle()); values.put(PopularMoviesContract.MovieEntry.COLUMN_POSTER_URI, movie.getPosterUri().toString()); values.put(PopularMoviesContract.MovieEntry.COLUMN_RELEASE_DATE, movie.getReleaseDate()); values.put(PopularMoviesContract.MovieEntry.COLUMN_VOTE_AVERAGE, movie.getVoteAverage()); values.put(PopularMoviesContract.MovieEntry.COLUMN_SYNOPSIS, movie.getSynopsis()); return values; }