encode<V> static method
Implementation
static V encode<V>(
TreasuryFinancialAccountsResourceOutboundPayments instance,
Encoder<V> encoder,
) {
final container = encoder.container<String>();
if (instance.ach != null) {
TreasuryFinancialAccountsResourceAchToggleSettings.encode(
instance.ach!,
container.nestedSingleValueContainer('ach').encoder,
);
}
if (instance.usDomesticWire != null) {
TreasuryFinancialAccountsResourceToggleSettings.encode(
instance.usDomesticWire!,
container.nestedSingleValueContainer('us_domestic_wire').encoder,
);
}
return container.value;
}