PaymentPagesCheckoutSessionConsent.fromJson constructor

PaymentPagesCheckoutSessionConsent.fromJson(
  1. Object? json
)

Implementation

factory PaymentPagesCheckoutSessionConsent.fromJson(Object? json) {
  final map = (json as Map).cast<String, Object?>();
  return PaymentPagesCheckoutSessionConsent(
      promotions: map['promotions'] == null
          ? null
          : CheckoutSessionConsentPromotions.fromJson(map['promotions']));
}