encode<V> static method
Implementation
static V encode<V>(
DisputePaymentMethodDetails instance,
Encoder<V> encoder,
) {
final container = encoder.container<String>();
if (instance.card != null) {
DisputePaymentMethodDetailsCard.encode(
instance.card!,
container.nestedSingleValueContainer('card').encoder,
);
}
container.encodeString(
'type',
'card',
);
return container.value;
}