mapToEpisode function Null safety

List<Episode> mapToEpisode(
  1. dynamic results
)

Implementation

List<Episode> mapToEpisode(results) {
  return mapToInterface<Episode>(results, (result) {
    return Episode.fromJson(result);
  });
}