getPackageDetail static method
Implementation
static Future<PackageModel> getPackageDetail(Datum content) async {
String objectId = content.objectid;
Contentdetail detail = await PlayService().getPlatformMedia(content);
var params = {
'availabilityid': detail.availabilityset![0].toString(),
'packageid': detail.packageid.toString(),
};
String url =
"${AppUrls.baseUrlVCMS}/subscriber/v1/content/package/$objectId";
bool isSafari = await PlayService().isMpegtspackage();
if (isSafari) {
params['mpegtspackage'] = 'YES';
}
final response = await _dio!.post(url, data: params);
var data = response.data;
return PackageModel.fromMap(data);
}