GetPaywallsResult.fromMap constructor

GetPaywallsResult.fromMap(
  1. Map<String, dynamic> map
)

Implementation

GetPaywallsResult.fromMap(Map<String, dynamic> map)
    : paywalls = map[_Keys.paywalls] != null ? (map[_Keys.paywalls] as List).map((e) => AdaptyPaywall.fromMap(e)).toList() : null,
      products = map[_Keys.products] != null ? (map[_Keys.products] as List).map((e) => AdaptyProduct.fromMap(e)).toList() : null;