encode<V> static method
Implementation
static V encode<V>(
PaymentMethodDetailsSepaCreditTransfer instance,
Encoder<V> encoder,
) {
final container = encoder.container<String>();
if (instance.bankName != null) {
container.encodeString(
'bank_name',
instance.bankName!,
);
}
if (instance.bic != null) {
container.encodeString(
'bic',
instance.bic!,
);
}
if (instance.iban != null) {
container.encodeString(
'iban',
instance.iban!,
);
}
return container.value;
}