PaywallCustomization.fromJson constructor

PaywallCustomization.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory PaywallCustomization.fromJson(Map<String, dynamic> json) =>
    PaywallCustomization(
      buttonStyle: ButtonStyle.fromJson(json["buttonStyle"]),
      micropaymentDisplaytext: json["micropaymentDisplaytext"] == null
          ? null
          : json["micropaymentDisplaytext"],
      subscriptionText:
          json["subscriptionText"] == null ? null : json["subscriptionText"],
      subscriptionTitle: json["subscriptionTitle"] == null
          ? null
          : json["subscriptionTitle"],
      crossButtonClickUrl: json["crossButtonClickUrl"] == null
          ? null
          : json["crossButtonClickUrl"],
      brandLogoUrl:
          json["brandLogoUrl"] == null ? null : json["brandLogoUrl"],
    );