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