PaymentIntentBoleto.fromJson constructor
PaymentIntentBoleto.fromJson(
- Object? json
Implementation
factory PaymentIntentBoleto.fromJson(Object? json) {
final map = (json as Map).cast<String, Object?>();
return PaymentIntentBoleto(
expiresAfterDays: map['expires_after_days'] == null
? null
: (map['expires_after_days'] as num).toInt(),
setupFutureUsage: map['setup_future_usage'] == null
? null
: PaymentIntentSetupFutureUsage.fromJson(map['setup_future_usage']),
);
}