getTvVideos method
Get TV videos
Get the videos that have been added to a TV show.
For more details on the API go here.
Throws FilmGyaanException on an error.
Implementation
Future<Videos> getTvVideos({
required int tvId,
}) async {
Ensure(tvId > 0).isTrue('Tv Id should be > 0');
var params = TvVideosParams(
tvId: tvId,
);
_logger.info('Getting tv videos for $tvId');
return defaultFlow<TvVideosParams, Videos>(
core: this,
params: params,
serializer: (dynamic json) => Videos.fromMap(
json as Map<String, dynamic>,
),
);
}