encode<V> static method

V encode<V>(
  1. RefundNextAction instance,
  2. Encoder<V> encoder
)

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;
}