getMovieCertifications method

Future<CertificationsList> getMovieCertifications()

Get Movie Certifications

Get an up to date list of the officially supported movie certifications on TMDB.

For more details on the API go here.

Throws FilmGyaanException on an error.

Implementation

Future<CertificationsList> getMovieCertifications() async {
  var params = CertificationsMoviesParams();

  _logger.info('Getting movie certifications');

  return defaultFlow<CertificationsMoviesParams, CertificationsList>(
    core: this,
    params: params,
    serializer: (dynamic json) => CertificationsList.fromMap(
      json as Map<String, dynamic>,
    ),
  );
}