encode<V> static method
Implementation
static V encode<V>(
FundingInstructionsBankTransferZenginRecord instance,
Encoder<V> encoder,
) {
final container = encoder.container<String>();
if (instance.accountHolderName != null) {
container.encodeString(
'account_holder_name',
instance.accountHolderName!,
);
}
if (instance.accountNumber != null) {
container.encodeString(
'account_number',
instance.accountNumber!,
);
}
if (instance.accountType != null) {
container.encodeString(
'account_type',
instance.accountType!,
);
}
if (instance.bankCode != null) {
container.encodeString(
'bank_code',
instance.bankCode!,
);
}
if (instance.bankName != null) {
container.encodeString(
'bank_name',
instance.bankName!,
);
}
if (instance.branchCode != null) {
container.encodeString(
'branch_code',
instance.branchCode!,
);
}
if (instance.branchName != null) {
container.encodeString(
'branch_name',
instance.branchName!,
);
}
return container.value;
}