toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() => {
  'severity': severity.name,
  'recommendation': recommendation.name,
  'hasRecommendation': hasRecommendation,
  'requiresAction': requiresAction,
  'recommendationHint': recommendationHint,
  'sourceDataPointCount': sourceDataPointCount,
  if (effectiveDataPointCount != null)
    'effectiveDataPointCount': effectiveDataPointCount,
  if (sampleInputPointCount != null)
    'sampleInputPointCount': sampleInputPointCount,
  'renderedDataPointCount': renderedDataPointCount,
  'seriesCount': seriesCount,
  'configSampledData': configSampledData,
  'payloadWasNormalized': payloadWasNormalized,
  'payloadChanged': payloadChanged,
  'largeUnsampled': largeUnsampled,
  'renderedOutputRatio': renderedOutputRatio,
  'renderedReductionRatio': renderedReductionRatio,
  if (samplingOutputRatio != null) 'samplingOutputRatio': samplingOutputRatio,
  if (samplingReductionRatio != null)
    'samplingReductionRatio': samplingReductionRatio,
  'processingCacheHitRate': processingCacheHitRate,
  'extractionCacheHitRate': extractionCacheHitRate,
  if (processingCacheMemoryPressure != null)
    'processingCacheMemoryPressure': processingCacheMemoryPressure,
  if (renderCacheHitRate != null) 'renderCacheHitRate': renderCacheHitRate,
  if (renderCacheRequests != null) 'renderCacheRequests': renderCacheRequests,
  if (pictureCacheMemoryPressure != null)
    'pictureCacheMemoryPressure': pictureCacheMemoryPressure,
  'policy': policy.toJson(),
};