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,
        numTimeUnits: _json.containsKey('numTimeUnits')
            ? _json['numTimeUnits'] as core.int
            : null,
        timeUnitType: _json.containsKey('timeUnitType')
            ? _json['timeUnitType'] as core.String
            : null,
      );