PaywallLaunchContext.fromJson constructor

PaywallLaunchContext.fromJson(
  1. Map map
)

Implementation

factory PaywallLaunchContext.fromJson(Map<dynamic, dynamic> map) {
  return PaywallLaunchContext(
      map['productGroups'] != null
          ? List<String>.from(map['productGroups'])
          : null,
      map['customAttributes'] != null
          ? Map<String, dynamic>.from(map['customAttributes'])
          : null);
}