encode<V> static method
Implementation
static V encode<V>(
SubscriptionPaymentSettingsPaymentMethodOptionsCard instance,
Encoder<V> encoder,
) {
final container = encoder.container<String>();
if (instance.mandateOptions != null) {
InvoiceMandateOptionsCard.encode(
instance.mandateOptions!,
container.nestedSingleValueContainer('mandate_options').encoder,
);
}
if (instance.network != null) {
PaymentIntentPaymentMethodOptionsCardNetwork.encode(
instance.network!,
container.nestedSingleValueContainer('network').encoder,
);
}
if (instance.requestThreeDSecure != null) {
InvoicePaymentMethodOptionsCardRequestThreeDSecure.encode(
instance.requestThreeDSecure!,
container.nestedSingleValueContainer('request_three_d_secure').encoder,
);
}
return container.value;
}