encode<V> static method

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

Implementation

static V encode<V>(
  PaymentMethodFpx instance,
  Encoder<V> encoder,
) {
  final container = encoder.container<String>();
  if (instance.accountHolderType != null) {
    InboundTransfersPaymentMethodDetailsUsBankAccountAccountHolderType.encode(
      instance.accountHolderType!,
      container.nestedSingleValueContainer('account_holder_type').encoder,
    );
  }
  PaymentMethodDetailsFpxBank.encode(
    instance.bank,
    container.nestedSingleValueContainer('bank').encoder,
  );
  return container.value;
}