PeopleDetails.fromJson constructor

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

Implementation

PeopleDetails.fromJson(Map<String, dynamic> json) {
  this.birthday = json['birthday'];
  this.knownForDepartment = json['known_for_department'];
  this.deathday = json['deathday'];
  this.name = json['name'];
  this.biography = json['biography'];
  this.placeOfBirth = json['place_of_birth'];
  this.profilePath = json['profile_path'];
  this.imdbId = json['imdb_id'];
  this.homepage = json['homepage'];
  this.adult = json['adult'];
  this.popularity = json['popularity'];
  this.id = json['id'];
  this.gender = json['gender'];

  List<dynamic> alsoKnownAsList = json['also_known_as'];
  this.alsoKnownAs = new List();
  this.alsoKnownAs.addAll(alsoKnownAsList.map((o) => o.toString()));
}