CheckoutSessionConsent.fromJson constructor

CheckoutSessionConsent.fromJson(
  1. Object? json
)

Implementation

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