getModules static method

Future<ModulesModel> getModules({
  1. required String seriesid,
})

Implementation

static Future<ModulesModel> getModules({required String seriesid}) async {
  String url =
      "${AppUrls.baseUrlVCMS}/subscriber/v1/content?objecttype=SEASON&seriesid=$seriesid&PAGE=1";
  final response = await _dio!.get(url);
  ModulesModel modulesModel = ModulesModel.fromMap(response.data);
  return modulesModel;
}