encode<V> static method
Implementation
static V encode<V>(
PaymentMethodDetailsAchCreditTransfer instance,
Encoder<V> encoder,
) {
final container = encoder.container<String>();
if (instance.accountNumber != null) {
container.encodeString(
'account_number',
instance.accountNumber!,
);
}
if (instance.bankName != null) {
container.encodeString(
'bank_name',
instance.bankName!,
);
}
if (instance.routingNumber != null) {
container.encodeString(
'routing_number',
instance.routingNumber!,
);
}
if (instance.swiftCode != null) {
container.encodeString(
'swift_code',
instance.swiftCode!,
);
}
return container.value;
}