encode<V> static method
Implementation
static V encode<V>(
RefundDestinationDetailsCard instance,
Encoder<V> encoder,
) {
final container = encoder.container<String>();
if (instance.reference != null) {
container.encodeString(
'reference',
instance.reference!,
);
}
if (instance.referenceStatus != null) {
container.encodeString(
'reference_status',
instance.referenceStatus!,
);
}
if (instance.referenceType != null) {
container.encodeString(
'reference_type',
instance.referenceType!,
);
}
container.encodeString(
'type',
instance.type,
);
return container.value;
}