getWatchProvidersRegions method

Future<WatchProviderRegions> getWatchProvidersRegions()

Get Available Watch Providers Regions

Returns a list of all of the countries we have watch provider (OTT/streaming) data for.

For more details on the API go here.

Throws FilmGyaanException on an error.

Implementation

Future<WatchProviderRegions> getWatchProvidersRegions() async {
  var params = WatchProvidersRegionsParams();

  _logger.info('Getting watch providers regions');

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