CheckoutSessionConsent.fromJson constructor
CheckoutSessionConsent.fromJson(
- 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']));
}