encode<V> static method
Implementation
static V encode<V>(
PaymentFlowsAutomaticPaymentMethodsPaymentIntent instance,
Encoder<V> encoder,
) {
final container = encoder.container<String>();
if (instance.allowRedirects != null) {
container.encodeString(
'allow_redirects',
instance.allowRedirects!,
);
}
container.encodeBool(
'enabled',
instance.enabled,
);
return container.value;
}