SubscriptionSchedulePhaseConfigurationCouponOrId.fromJson constructor
SubscriptionSchedulePhaseConfigurationCouponOrId.fromJson(
- Object? json
Implementation
factory SubscriptionSchedulePhaseConfigurationCouponOrId.fromJson(
Object? json) {
if (json is String) {
return SubscriptionSchedulePhaseConfigurationCouponId(id: json);
}
return SubscriptionSchedulePhaseConfigurationCoupon.fromJson(json);
}