encode<V> static method

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

Implementation

static V encode<V>(
  CouponCurrencyOption instance,
  Encoder<V> encoder,
) {
  final container = encoder.container<String>();
  container.encodeInt(
    'amount_off',
    instance.amountOff,
  );
  return container.value;
}