...

/

Converting API Response to MovieModel List

Converting API Response to MovieModel List

In this lesson, you'll learn to use the "MovieModel" object to build a "movies" list of movie entries returned from the API response.

Converting JSON to MovieModel object

You’ll convert the API response to MovieModel objects before adding to the movies list.

//List of movies to hold data parsed from api response
List<MovieModel> movies = List<MovieModel>();

fetchMovies() async {

// Fetching data from server
 var data = await
...
Access this course and 1400+ top-rated courses and projects.