encode<V> static method
Implementation
static V encode<V>(
PaymentMethodDetailsP24 instance,
Encoder<V> encoder,
) {
final container = encoder.container<String>();
if (instance.bank != null) {
container.encodeString(
'bank',
instance.bank!,
);
}
if (instance.reference != null) {
container.encodeString(
'reference',
instance.reference!,
);
}
if (instance.verifiedName != null) {
container.encodeString(
'verified_name',
instance.verifiedName!,
);
}
return container.value;
}