encode<V> static method
Implementation
static V encode<V>(
SourceTransactionAchCreditTransferData instance,
Encoder<V> encoder,
) {
final container = encoder.container<String>();
if (instance.customerData != null) {
container.encodeString(
'customer_data',
instance.customerData!,
);
}
if (instance.fingerprint != null) {
container.encodeString(
'fingerprint',
instance.fingerprint!,
);
}
if (instance.last4 != null) {
container.encodeString(
'last4',
instance.last4!,
);
}
if (instance.routingNumber != null) {
container.encodeString(
'routing_number',
instance.routingNumber!,
);
}
return container.value;
}