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