encode<V> static method

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

Implementation

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