CheckoutSessionConsentCollectionPaymentMethodReuseAgreement.fromJson constructor

CheckoutSessionConsentCollectionPaymentMethodReuseAgreement.fromJson(
  1. Object? json
)

Implementation

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