encode<V> static method
Implementation
static V encode<V>(
SourceTypeAchDebit instance,
Encoder<V> encoder,
) {
final container = encoder.container<String>();
if (instance.bankName != null) {
container.encodeString(
'bank_name',
instance.bankName!,
);
}
if (instance.country != null) {
container.encodeString(
'country',
instance.country!,
);
}
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!,
);
}
if (instance.type != null) {
container.encodeString(
'type',
instance.type!,
);
}
return container.value;
}