getTvAggregateCredits method
Get TV aggregate credits
Get the aggregate 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> getTvAggregateCredits({
required int tvId,
}) async {
Ensure(tvId > 0).isTrue('Tv Id should be > 0');
var params = TvAggregateCreditsParams(
tvId: tvId,
);
_logger.info('Getting tv aggregated credits for $tvId');
return defaultFlow<TvAggregateCreditsParams, Credits>(
core: this,
params: params,
serializer: (dynamic json) => Credits.fromMap(
json as Map<String, dynamic>,
),
);
}