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