encode<V> static method

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

Implementation

static V encode<V>(
  SessionRetention instance,
  Encoder<V> encoder,
) {
  final container = encoder.container<String>();
  PortalFlowsCouponOffer.encode(
    instance.couponOffer,
    container.nestedSingleValueContainer('coupon_offer').encoder,
  );
  container.encodeString(
    'type',
    'coupon_offer',
  );
  return container.value;
}