UpgradeTargetingRule.fromJson constructor

UpgradeTargetingRule.fromJson(
  1. Map json_
)

Implementation

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