encode<V> static method

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

Implementation

static V encode<V>(
  PaymentIntentCardPresent instance,
  Encoder<V> encoder,
) {
  final container = encoder.container<String>();
  if (instance.requestExtendedAuthorization != null) {
    container.encodeBool(
      'request_extended_authorization',
      instance.requestExtendedAuthorization!,
    );
  }
  if (instance.requestIncrementalAuthorizationSupport != null) {
    container.encodeBool(
      'request_incremental_authorization_support',
      instance.requestIncrementalAuthorizationSupport!,
    );
  }
  return container.value;
}