encode<V> static method
Implementation
static V encode<V>(
InvoiceBancontact instance,
Encoder<V> encoder,
) {
final container = encoder.container<String>();
if (instance.preferredLanguage != null) {
InvoicePaymentMethodOptionsBancontactPreferredLanguage.encode(
instance.preferredLanguage!,
container.nestedSingleValueContainer('preferred_language').encoder,
);
}
return container.value;
}