PaymentFlowsAutomaticPaymentMethodsPaymentIntent.fromJson constructor

PaymentFlowsAutomaticPaymentMethodsPaymentIntent.fromJson(
  1. Object? json
)

Implementation

factory PaymentFlowsAutomaticPaymentMethodsPaymentIntent.fromJson(
    Object? json) {
  final map = (json as Map).cast<String, Object?>();
  return PaymentFlowsAutomaticPaymentMethodsPaymentIntent(
    allowRedirects: map['allow_redirects'] == null
        ? null
        : PaymentFlowsAutomaticPaymentMethodsPaymentIntentAllowRedirects
            .fromJson(map['allow_redirects']),
    enabled: (map['enabled'] as bool),
  );
}