toMap method
Implementation
Map<String, dynamic> toMap() {
return {
'air_date': this.airDate.toString(),
'episode_count': this.episodeCount,
'id': this.id,
'name': this.name,
'overview': this.overview,
'poster_path': AssetResolver.getPathFromUrl(this.posterPath),
'season_number': this.seasonNumber,
};
}