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