encode<V> static method

Implementation

static V encode<V>(
  PaymentIntentCreateOptionsPaymentMethodOptionsUsBankAccountMandateOptions
      instance,
  Encoder<V> encoder,
) {
  final container = encoder.container<String>();
  if (instance.collectionMethod != null) {
    container.encodeString(
      'collection_method',
      instance.collectionMethod!,
    );
  }
  return container.value;
}