ImpressionMetricsRow.fromJson constructor

ImpressionMetricsRow.fromJson(
  1. Map _json
)

Implementation

ImpressionMetricsRow.fromJson(core.Map _json)
    : this(
        availableImpressions: _json.containsKey('availableImpressions')
            ? MetricValue.fromJson(_json['availableImpressions']
                as core.Map<core.String, core.dynamic>)
            : null,
        bidRequests: _json.containsKey('bidRequests')
            ? MetricValue.fromJson(
                _json['bidRequests'] as core.Map<core.String, core.dynamic>)
            : null,
        inventoryMatches: _json.containsKey('inventoryMatches')
            ? MetricValue.fromJson(_json['inventoryMatches']
                as core.Map<core.String, core.dynamic>)
            : null,
        responsesWithBids: _json.containsKey('responsesWithBids')
            ? MetricValue.fromJson(_json['responsesWithBids']
                as core.Map<core.String, core.dynamic>)
            : null,
        rowDimensions: _json.containsKey('rowDimensions')
            ? RowDimensions.fromJson(
                _json['rowDimensions'] as core.Map<core.String, core.dynamic>)
            : null,
        successfulResponses: _json.containsKey('successfulResponses')
            ? MetricValue.fromJson(_json['successfulResponses']
                as core.Map<core.String, core.dynamic>)
            : null,
      );