getTvImages method

Future<Images> getTvImages({
  1. required int tvId,
})

Get TV images

Get the images that belong to a TV show.

For more details on the API go here.

Throws FilmGyaanException on an error.

Implementation

Future<Images> getTvImages({
  required int tvId,
}) async {
  Ensure(tvId > 0).isTrue('Tv Id should be > 0');

  var params = TvImagesParams(
    tvId: tvId,
  );

  _logger.info('Getting tv images for $tvId');

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