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