encode<V> static method
Implementation
static V encode<V>(
OutboundPaymentDestinationPaymentMethodOptions instance,
Encoder<V> encoder,
) {
final container = encoder.container<String>();
if (instance.usBankAccount != null) {
OutboundPaymentUsBankAccount.encode(
instance.usBankAccount!,
container.nestedSingleValueContainer('us_bank_account').encoder,
);
}
return container.value;
}