SessionConsentCollection.fromJson constructor
SessionConsentCollection.fromJson(
- Object? json
Implementation
factory SessionConsentCollection.fromJson(Object? json) {
final map = (json as Map).cast<String, Object?>();
return SessionConsentCollection(
paymentMethodReuseAgreement: map['payment_method_reuse_agreement'] == null
? null
: PaymentPagesCheckoutSessionPaymentMethodReuseAgreement.fromJson(
map['payment_method_reuse_agreement']),
promotions: map['promotions'] == null
? null
: SessionPromotions.fromJson(map['promotions']),
termsOfService: map['terms_of_service'] == null
? null
: SessionTermsOfService.fromJson(map['terms_of_service']),
);
}