encode<V> static method
Implementation
static V encode<V>(
SessionCustomerBalance instance,
Encoder<V> encoder,
) {
final container = encoder.container<String>();
if (instance.bankTransfer != null) {
SessionBankTransfer.encode(
instance.bankTransfer!,
container.nestedSingleValueContainer('bank_transfer').encoder,
);
}
if (instance.fundingType != null) {
container.encodeString(
'funding_type',
'bank_transfer',
);
}
if (instance.setupFutureUsage != null) {
container.encodeString(
'setup_future_usage',
'none',
);
}
return container.value;
}