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