BidMetricsRow.fromJson constructor

BidMetricsRow.fromJson(
  1. Map _json
)

Implementation

BidMetricsRow.fromJson(core.Map _json)
    : this(
        bids: _json.containsKey('bids')
            ? MetricValue.fromJson(
                _json['bids'] as core.Map<core.String, core.dynamic>)
            : null,
        bidsInAuction: _json.containsKey('bidsInAuction')
            ? MetricValue.fromJson(
                _json['bidsInAuction'] as core.Map<core.String, core.dynamic>)
            : null,
        billedImpressions: _json.containsKey('billedImpressions')
            ? MetricValue.fromJson(_json['billedImpressions']
                as core.Map<core.String, core.dynamic>)
            : null,
        impressionsWon: _json.containsKey('impressionsWon')
            ? MetricValue.fromJson(_json['impressionsWon']
                as core.Map<core.String, core.dynamic>)
            : null,
        measurableImpressions: _json.containsKey('measurableImpressions')
            ? MetricValue.fromJson(_json['measurableImpressions']
                as core.Map<core.String, core.dynamic>)
            : null,
        reachedQueries: _json.containsKey('reachedQueries')
            ? MetricValue.fromJson(_json['reachedQueries']
                as core.Map<core.String, core.dynamic>)
            : null,
        rowDimensions: _json.containsKey('rowDimensions')
            ? RowDimensions.fromJson(
                _json['rowDimensions'] as core.Map<core.String, core.dynamic>)
            : null,
        viewableImpressions: _json.containsKey('viewableImpressions')
            ? MetricValue.fromJson(_json['viewableImpressions']
                as core.Map<core.String, core.dynamic>)
            : null,
      );