SubscriptionOrId.fromJson constructor

SubscriptionOrId.fromJson(
  1. Object? json
)

Implementation

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