toJson method
Implementation
Map<String, dynamic> toJson() => {
'type': typeString,
'jsonDriven': jsonDriven,
'inputSignature': inputSignature.toJson(),
if (rawInputSignature != null)
'rawInputSignature': rawInputSignature!.toJson(),
'configSignature': configSignature.toJson(),
'sourceDataPointCount': sourceDataPointCount,
if (effectiveDataPointCount != null)
'effectiveDataPointCount': effectiveDataPointCount,
if (sampleInputPointCount != null)
'sampleInputPointCount': sampleInputPointCount,
'renderedDataPointCount': renderedDataPointCount,
'seriesCount': seriesCount,
'configSampledData': configSampledData,
'payloadNormalization': {
'wasNormalized': payloadWasNormalized,
'changed': payloadChanged,
'diffCount': payloadDiffCount,
if (payloadChangedPaths.isNotEmpty)
'changedPaths': List<String>.from(payloadChangedPaths),
},
if (dataMode != null) 'dataMode': dataMode,
if (sampling != null) 'sampling': JsonValue.clone(sampling),
'durationsMicros': {
'configResolve': configResolveDuration.inMicroseconds,
'chartBuild': chartBuildDuration.inMicroseconds,
'totalBuild': totalBuildDuration.inMicroseconds,
},
'performancePolicyResolution': performancePolicyResolution.toJson(),
'performanceSummary': performanceSummary.toJson(),
'processingCache': processingCacheStats.toJson(),
if (renderCacheStats != null) 'renderCaches': renderCacheStats!.toJson(),
if (pictureCacheStats != null) 'pictureCache': pictureCacheStats!.toJson(),
};