encode<V> static method

V encode<V>(
  1. TreasuryFinancialAccountsResourceFinancialAddressesFeatures instance,
  2. Encoder<V> encoder
)

Implementation

static V encode<V>(
  TreasuryFinancialAccountsResourceFinancialAddressesFeatures instance,
  Encoder<V> encoder,
) {
  final container = encoder.container<String>();
  if (instance.aba != null) {
    TreasuryFinancialAccountsResourceAbaToggleSettings.encode(
      instance.aba!,
      container.nestedSingleValueContainer('aba').encoder,
    );
  }
  return container.value;
}