SubscriptionScheduleAddInvoiceItemPriceOrId.fromJson constructor

SubscriptionScheduleAddInvoiceItemPriceOrId.fromJson(
  1. Object? json
)

Implementation

factory SubscriptionScheduleAddInvoiceItemPriceOrId.fromJson(Object? json) {
  if (json is String) {
    return SubscriptionScheduleAddInvoiceItemPriceId(id: json);
  }
  return SubscriptionScheduleAddInvoiceItemPrice.fromJson(json);
}