ContentDetails.fromJson constructor
ContentDetails.fromJson(
- Map<String, dynamic> json
)
Implementation
factory ContentDetails.fromJson(Map<String, dynamic> json) => ContentDetails(
microPricing: MicroPricing.fromJson(json["microPricing"]),
price: json["price"] == null ? null : json["price"],
duration: json["duration"] == null ? null : json["duration"],
currency: json["currency"] == null ? null : json["currency"],
currencySymbol:
json["currencySymbol"] == null ? null : json["currencySymbol"],
clientName: json["clientName"] == null ? null : json["clientName"],
url: json["url"] == null ? null : json["url"],
title: json["title"] == null ? null : json["title"],
contentType: json["contentType"] == null ? null : json["contentType"],
couponDetails: Coupon.fromJson(json["couponDetails"]),
downloadExists:
json["downloadExists"] == null ? null : json["downloadExists"],
bundle: json["bundle"] == null ? null : json["bundle"],
pixels: Pixels.fromJson(json["pixels"]),
logoUrl: json["logoUrl"] == null ? null : json["logoUrl"],
validPass: ValidPass.fromJson(json["validPass"]),
paywallCustomization:
PaywallCustomization.fromJson(json["paywallCustomization"]),
subscriptionsExist: json["subscriptionsExist"] == null
? null
: json["subscriptionsExist"],
subscriptionDomain: json["subscriptionDomain"] == null
? null
: json["subscriptionDomain"],
pathUrl: json["pathUrl"] == null ? null : json["pathUrl"],
categories: List<dynamic>.from(json["categories"].map((x) => x)),
detectedCountry:
json["detectedCountry"] == null ? null : json["detectedCountry"],
couponForPass: Coupon.fromJson(json["couponForPass"]),
subscriptionUrl:
json["subscriptionUrl"] == null ? null : json["subscriptionUrl"],
);