toJson method
Implementation
Map<String, dynamic> toJson() {
return {
'year': year,
'rated': rated,
'released': released,
'runtime': runtime,
'genre': genre,
'director': director,
'writer': writer,
'actors': actors,
'plot': plot,
'language': language,
'country': country,
'awards': awards,
'backdrop': backdrop,
'backdropBlurHash': backdropBlurHash,
'ratings': ratings?.map((rating) => rating.toJson()).toList(),
'metascore': metascore,
'imdbRating': imdbRating,
'imdbVotes': imdbVotes,
'imdbID': imdbID,
'type': type,
'dvd': dvd,
'boxOffice': boxOffice,
'production': production,
'website': website,
};
}