PaymentIntentPaymentMethodOptionsLink.fromJson constructor

PaymentIntentPaymentMethodOptionsLink.fromJson(
  1. Object? json
)

Implementation

factory PaymentIntentPaymentMethodOptionsLink.fromJson(Object? json) {
  final map = (json as Map).cast<String, Object?>();
  return PaymentIntentPaymentMethodOptionsLink(
    persistentToken: map['persistent_token'] == null
        ? null
        : (map['persistent_token'] as String),
    setupFutureUsage: map['setup_future_usage'] == null
        ? null
        : CheckoutLinkPaymentMethodOptionsSetupFutureUsage.fromJson(
            map['setup_future_usage']),
  );
}