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