encode<V> static method

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

Implementation

static V encode<V>(
  TerminalReaderReaderResourceRefundPaymentConfig instance,
  Encoder<V> encoder,
) {
  final container = encoder.container<String>();
  if (instance.enableCustomerCancellation != null) {
    container.encodeBool(
      'enable_customer_cancellation',
      instance.enableCustomerCancellation!,
    );
  }
  return container.value;
}