TheMovieDetail.fromJson constructor
TheMovieDetail.fromJson(
- Map<String, dynamic> json
)
Implementation
TheMovieDetail.fromJson(Map<String, dynamic> json) {
adult = json["adult"];
backdropPath = json["backdrop_path"];
belongsToCollection = json["belongs_to_collection"] == null
? null
: TheMovieDetailBelongsToCollection.fromJson(
json["belongs_to_collection"]);
budget = json["budget"];
genres = json["genres"] == null
? null
: (json["genres"] as List)
.map((e) => TheMovieDetailGenres.fromJson(e))
.toList();
homepage = json["homepage"];
id = json["id"];
imdbId = json["imdb_id"];
originalLanguage = json["original_language"];
originalTitle = json["original_title"];
overview = json["overview"];
popularity = json["popularity"];
posterPath = json["poster_path"];
productionCompanies = json["production_companies"] == null
? null
: (json["production_companies"] as List)
.map((e) => TheMovieDetailProductionCompanies.fromJson(e))
.toList();
productionCountries = json["production_countries"] == null
? null
: (json["production_countries"] as List)
.map((e) => TheMovieDetailProductionCountries.fromJson(e))
.toList();
releaseDate = json["release_date"];
revenue = json["revenue"];
runtime = json["runtime"];
spokenLanguages = json["spoken_languages"] == null
? null
: (json["spoken_languages"] as List)
.map((e) => TheMovieDetailSpokenLanguages.fromJson(e))
.toList();
status = json["status"];
tagline = json["tagline"];
title = json["title"];
video = json["video"];
voteAverage = json["vote_average"];
voteCount = json["vote_count"];
}