getContentDetail static method

Future<Datum> getContentDetail(
  1. String objectid
)

Implementation

static Future<Datum> getContentDetail(String objectid) async {
  String url = "${AppUrls.baseUrlVCMS}/subscriber/v1/content/$objectid";
  bool isSafari = await PlayService().isMpegtspackage();

  if (isSafari) {
    url = "$url?mpegtspackage=YES";
  }
  final response = await _dio!.get(url);
  Datum datum = Datum.fromMap(response.data!);
  return datum;
}