BillingPortalSessionFlowSubscriptionCancelRetention.fromJson constructor

BillingPortalSessionFlowSubscriptionCancelRetention.fromJson(
  1. Object? json
)

Implementation

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