encode<V> static method
V
encode<
V>( - InvoiceCard instance,
- Encoder<V> encoder
)
Implementation
static V encode<V>(
InvoiceCard instance,
Encoder<V> encoder,
) {
final container = encoder.container<String>();
if (instance.installments != null) {
InvoiceInstallments.encode(
instance.installments!,
container.nestedSingleValueContainer('installments').encoder,
);
}
if (instance.requestThreeDSecure != null) {
CheckoutCardPaymentMethodOptionsRequestThreeDSecure.encode(
instance.requestThreeDSecure!,
container.nestedSingleValueContainer('request_three_d_secure').encoder,
);
}
return container.value;
}