SubscriptionItemOrId.fromJson constructor

SubscriptionItemOrId.fromJson(
  1. Object? json
)

Implementation

factory SubscriptionItemOrId.fromJson(Object? json) {
  if (json is String) {
    return SubscriptionItemId(id: json);
  }
  return SubscriptionItem.fromJson(json);
}