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