encode<V> static method

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

Implementation

static V encode<V>(
  PaymentIntentNextActionRedirectToUrl instance,
  Encoder<V> encoder,
) {
  final container = encoder.container<String>();
  if (instance.returnUrl != null) {
    container.encodeString(
      'return_url',
      instance.returnUrl!,
    );
  }
  if (instance.url != null) {
    container.encodeString(
      'url',
      instance.url!,
    );
  }
  return container.value;
}