encode<V> static method
Implementation
static V encode<V>(
TerminalReaderProcessPaymentIntentOptions instance,
Encoder<V> encoder,
) {
final container = encoder.container<String>();
if (instance.expand != null) {
container.encodeList(
'expand',
(container) =>
instance.expand!.forEach((el) => container.encodeString(el)),
);
}
container.encodeString(
'payment_intent',
instance.paymentIntent,
);
if (instance.processConfig != null) {
ReaderProcessConfig.encode(
instance.processConfig!,
container.nestedSingleValueContainer('process_config').encoder,
);
}
return container.value;
}