encode<V> static method

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

Implementation

static V encode<V>(
  PaymentIntentMandateDataClientKeyParamCustomerAcceptance instance,
  Encoder<V> encoder,
) {
  final container = encoder.container<String>();
  PaymentIntentMandateDataClientKeyParamCustomerAcceptanceOnline.encode(
    instance.online,
    container.nestedSingleValueContainer('online').encoder,
  );
  container.encodeString(
    'type',
    'online',
  );
  return container.value;
}