toMap method
Implementation
Map<String, dynamic> toMap() => <String, dynamic>{
'air_date': airDate == null
? null
: "${airDate!.year.toString().padLeft(4, '0')}-${airDate!.month.toString().padLeft(2, '0')}-${airDate!.day.toString().padLeft(2, '0')}",
'episode_count': episodeCount,
'id': id,
'name': name,
'overview': overview,
'poster_path': posterPath,
'season_number': seasonNumber,
};