encode<V> static method
Implementation
static V encode<V>(
SetupIntentNextActionRedirectToUrl 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;
}