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