encode<V> static method

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

Implementation

static V encode<V>(
  ConnectEmbeddedPaymentsConfig instance,
  Encoder<V> encoder,
) {
  final container = encoder.container<String>();
  container.encodeBool(
    'enabled',
    instance.enabled,
  );
  ConnectEmbeddedPaymentsFeatures.encode(
    instance.features,
    container.nestedSingleValueContainer('features').encoder,
  );
  return container.value;
}