getRelatedContent static method
Implementation
static Future<ContentModel> getRelatedContent({
required String contentid,
String displaylanguage = "eng",
int page = 1,
}) async {
String url =
"${AppUrls.baseUrlVCMS}/subscriber/v1/content/related/$contentid?displaylanguage=$displaylanguage&PAGE=$page";
bool isSafari = await PlayService().isMpegtspackage();
if (isSafari) {
url = "$url&mpegtspackage=YES";
}
final response = await _dio!.get(url);
ContentModel contentModel = ContentModel.fromMap(response.data);
return contentModel;
}