SubscriptionScheduleConfigurationItemPlanOrId.fromJson constructor

SubscriptionScheduleConfigurationItemPlanOrId.fromJson(
  1. Object? json
)

Implementation

factory SubscriptionScheduleConfigurationItemPlanOrId.fromJson(Object? json) {
  if (json is String) {
    return SubscriptionScheduleConfigurationItemPlanId(id: json);
  }
  return SubscriptionScheduleConfigurationItemPlan.fromJson(json);
}