encode<V> static method
Implementation
static V encode<V>(
SourceTransactionChfCreditTransferData instance,
Encoder<V> encoder,
) {
final container = encoder.container<String>();
if (instance.reference != null) {
container.encodeString(
'reference',
instance.reference!,
);
}
if (instance.senderAddressCountry != null) {
container.encodeString(
'sender_address_country',
instance.senderAddressCountry!,
);
}
if (instance.senderAddressLine1 != null) {
container.encodeString(
'sender_address_line1',
instance.senderAddressLine1!,
);
}
if (instance.senderIban != null) {
container.encodeString(
'sender_iban',
instance.senderIban!,
);
}
if (instance.senderName != null) {
container.encodeString(
'sender_name',
instance.senderName!,
);
}
return container.value;
}