encode<V> static method
Implementation
static V encode<V>(
SourceTransactionGbpCreditTransferData instance,
Encoder<V> encoder,
) {
final container = encoder.container<String>();
if (instance.fingerprint != null) {
container.encodeString(
'fingerprint',
instance.fingerprint!,
);
}
if (instance.fundingMethod != null) {
container.encodeString(
'funding_method',
instance.fundingMethod!,
);
}
if (instance.last4 != null) {
container.encodeString(
'last4',
instance.last4!,
);
}
if (instance.reference != null) {
container.encodeString(
'reference',
instance.reference!,
);
}
if (instance.senderAccountNumber != null) {
container.encodeString(
'sender_account_number',
instance.senderAccountNumber!,
);
}
if (instance.senderName != null) {
container.encodeString(
'sender_name',
instance.senderName!,
);
}
if (instance.senderSortCode != null) {
container.encodeString(
'sender_sort_code',
instance.senderSortCode!,
);
}
return container.value;
}