$FrequencyCap.fromJson constructor

$FrequencyCap.fromJson(
  1. Map json_
)

Implementation

$FrequencyCap.fromJson(core.Map json_)
    : this(
        maxImpressions: json_.containsKey('maxImpressions')
            ? json_['maxImpressions'] as core.int
            : null,
        maxViews: json_.containsKey('maxViews')
            ? json_['maxViews'] as core.int
            : null,
        timeUnit: json_.containsKey('timeUnit')
            ? json_['timeUnit'] as core.String
            : null,
        timeUnitCount: json_.containsKey('timeUnitCount')
            ? json_['timeUnitCount'] as core.int
            : null,
        unlimited: json_.containsKey('unlimited')
            ? json_['unlimited'] as core.bool
            : null,
      );