encode<V> static method
Implementation
static V encode<V>(
SourceTypeSofort instance,
Encoder<V> encoder,
) {
final container = encoder.container<String>();
if (instance.bankCode != null) {
container.encodeString(
'bank_code',
instance.bankCode!,
);
}
if (instance.bankName != null) {
container.encodeString(
'bank_name',
instance.bankName!,
);
}
if (instance.bic != null) {
container.encodeString(
'bic',
instance.bic!,
);
}
if (instance.country != null) {
container.encodeString(
'country',
instance.country!,
);
}
if (instance.ibanLast4 != null) {
container.encodeString(
'iban_last4',
instance.ibanLast4!,
);
}
if (instance.preferredLanguage != null) {
container.encodeString(
'preferred_language',
instance.preferredLanguage!,
);
}
if (instance.statementDescriptor != null) {
container.encodeString(
'statement_descriptor',
instance.statementDescriptor!,
);
}
return container.value;
}