TargetingRuleScope.fromJson constructor

TargetingRuleScope.fromJson(
  1. Map json_
)

Implementation

TargetingRuleScope.fromJson(core.Map json_)
    : this(
        anySubscriptionInApp: json_.containsKey('anySubscriptionInApp')
            ? TargetingRuleScopeAnySubscriptionInApp.fromJson(
                json_['anySubscriptionInApp']
                    as core.Map<core.String, core.dynamic>)
            : null,
        specificSubscriptionInApp:
            json_.containsKey('specificSubscriptionInApp')
                ? json_['specificSubscriptionInApp'] as core.String
                : null,
        thisSubscription: json_.containsKey('thisSubscription')
            ? TargetingRuleScopeThisSubscription.fromJson(
                json_['thisSubscription']
                    as core.Map<core.String, core.dynamic>)
            : null,
      );