encode<V> static method

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

Implementation

static V encode<V>(
  ConfirmationTokenMandateData instance,
  Encoder<V> encoder,
) {
  final container = encoder.container<String>();
  ConfirmationTokensResourceMandateDataResourceCustomerAcceptance.encode(
    instance.customerAcceptance,
    container.nestedSingleValueContainer('customer_acceptance').encoder,
  );
  return container.value;
}