encode<V> static method

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

Implementation

static V encode<V>(
  PaymentMethodConfigurationAcssDebit instance,
  Encoder<V> encoder,
) {
  final container = encoder.container<String>();
  if (instance.displayPreference != null) {
    PaymentMethodConfigurationDisplayPreference.encode(
      instance.displayPreference!,
      container.nestedSingleValueContainer('display_preference').encoder,
    );
  }
  return container.value;
}