encode<V> static method

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

Implementation

static V encode<V>(
  SetupIntentPaymentMethodOptionsPaypal instance,
  Encoder<V> encoder,
) {
  final container = encoder.container<String>();
  if (instance.billingAgreementId != null) {
    container.encodeString(
      'billing_agreement_id',
      instance.billingAgreementId!,
    );
  }
  return container.value;
}