getTvGenre method

Future<GenreList> getTvGenre()

Get TV List

Get the list of official genres for TV shows.

For more details on the API go here.

Throws FilmGyaanException on an error.

Implementation

Future<GenreList> getTvGenre() async {
  var params = TvGenreParams();

  _logger.info('Getting tv genre');

  return defaultFlow<TvGenreParams, GenreList>(
    core: this,
    params: params,
    serializer: (dynamic json) => GenreList.fromMap(
      json as Map<String, dynamic>,
    ),
  );
}