encode<V> static method

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

Implementation

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