toGenreModel method Null safety

List<GenreModel> toGenreModel()

Used to convert a List dynamic into a List GenreModel.

Implementation

List<GenreModel> toGenreModel() => map((e) => GenreModel(e)).toList();