encode<V> static method
Implementation
static V encode<V>(
InvoicePaymentMethodOptionsCustomerBalanceBankTransfer instance,
Encoder<V> encoder,
) {
final container = encoder.container<String>();
if (instance.euBankTransfer != null) {
InvoicePaymentMethodOptionsCustomerBalanceBankTransferEuBankTransfer
.encode(
instance.euBankTransfer!,
container.nestedSingleValueContainer('eu_bank_transfer').encoder,
);
}
if (instance.type != null) {
container.encodeString(
'type',
instance.type!,
);
}
return container.value;
}