BillingPortalSessionFlowSubscriptionCancelRetentionCouponOffer.fromJson constructor

BillingPortalSessionFlowSubscriptionCancelRetentionCouponOffer.fromJson(
  1. Object? json
)

Implementation

factory BillingPortalSessionFlowSubscriptionCancelRetentionCouponOffer.fromJson(
    Object? json) {
  final map = (json as Map).cast<String, Object?>();
  return BillingPortalSessionFlowSubscriptionCancelRetentionCouponOffer(
      coupon: (map['coupon'] as String));
}