SubscriptionOrId.fromJson constructor
SubscriptionOrId.fromJson(
- Object? json
Implementation
factory SubscriptionOrId.fromJson(Object? json) {
if (json is String) {
return SubscriptionId(id: json);
}
return Subscription.fromJson(json);
}