UpgradeTargetingRule.fromJson constructor

UpgradeTargetingRule.fromJson(
  1. Map json_
)

Implementation

UpgradeTargetingRule.fromJson(core.Map json_)
    : this(
        billingPeriodDuration: json_.containsKey('billingPeriodDuration')
            ? json_['billingPeriodDuration'] as core.String
            : null,
        oncePerUser: json_.containsKey('oncePerUser')
            ? json_['oncePerUser'] as core.bool
            : null,
        scope: json_.containsKey('scope')
            ? TargetingRuleScope.fromJson(
                json_['scope'] as core.Map<core.String, core.dynamic>)
            : null,
      );