encode<V> static method
Implementation
static V encode<V>(
SessionBoleto instance,
Encoder<V> encoder,
) {
final container = encoder.container<String>();
if (instance.expiresAfterDays != null) {
container.encodeInt(
'expires_after_days',
instance.expiresAfterDays!,
);
}
if (instance.setupFutureUsage != null) {
CheckoutAcssDebitPaymentMethodOptionsSetupFutureUsage.encode(
instance.setupFutureUsage!,
container.nestedSingleValueContainer('setup_future_usage').encoder,
);
}
return container.value;
}