PaymentPagesCheckoutSessionPaymentMethodReuseAgreement.fromJson constructor

PaymentPagesCheckoutSessionPaymentMethodReuseAgreement.fromJson(
  1. Object? json
)

Implementation

factory PaymentPagesCheckoutSessionPaymentMethodReuseAgreement.fromJson(
    Object? json) {
  final map = (json as Map).cast<String, Object?>();
  return PaymentPagesCheckoutSessionPaymentMethodReuseAgreement(
      position:
          CheckoutSessionConsentCollectionPaymentMethodReuseAgreementPosition
              .fromJson(map['position']));
}