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