toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final Map<String, dynamic> data = new Map<String, dynamic>();
  data['character'] = this.character;
  data['credit_id'] = this.creditId;
  data['poster_path'] = this.posterPath;
  data['backdrop_path'] = this.backdropPath;
  data['original_language'] = this.originalLanguage;
  data['original_title'] = this.originalTitle;
  data['title'] = this.title;
  data['overview'] = this.overview;
  data['release_date'] = this.releaseDate;
  data['video'] = this.video;
  data['adult'] = this.adult;
  data['popularity'] = this.popularity;
  data['vote_average'] = this.voteAverage;
  data['id'] = this.id;
  data['vote_count'] = this.voteCount;
  data['genre_ids'] = this.genreIds;
  return data;
}