PortalFlowsSubscriptionUpdateConfirmDiscount.fromJson constructor

PortalFlowsSubscriptionUpdateConfirmDiscount.fromJson(
  1. Object? json
)

Implementation

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