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