encode<V> static method

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

Implementation

static V encode<V>(
  PaymentMethodConfigResourcePaymentMethodProperties instance,
  Encoder<V> encoder,
) {
  final container = encoder.container<String>();
  container.encodeBool(
    'available',
    instance.available,
  );
  PaymentMethodConfigResourceDisplayPreference.encode(
    instance.displayPreference,
    container.nestedSingleValueContainer('display_preference').encoder,
  );
  return container.value;
}