TheMovieCredit.fromJson constructor

TheMovieCredit.fromJson(
  1. Map<String, dynamic> json
)

Implementation

TheMovieCredit.fromJson(Map<String, dynamic> json) {
  id = json["id"];
  cast = json["cast"] == null
      ? null
      : (json["cast"] as List).map((e) => TheMovieCast.fromJson(e)).toList();
  crew = json["crew"] == null
      ? null
      : (json["crew"] as List).map((e) => TheMovieCrew.fromJson(e)).toList();
}