getPersonTvCredits method
Get TV Credits.
Get the TV show credits for a person.
For more details on the API go here.
Throws FilmGyaanException on an error.
Implementation
Future<Credits> getPersonTvCredits({
required int personId,
}) async {
Ensure(personId > 0).isTrue('Person Id should be > 0');
var params = PeopleTvCreditsParams(
personId: personId,
);
_logger.info('Getting tv credits for $personId person');
return defaultFlow<PeopleTvCreditsParams, Credits>(
core: this,
params: params,
serializer: (dynamic json) => Credits.fromMap(
json as Map<String, dynamic>,
),
);
}