toJson method
Encodes this value as a JSON object.
Implementation
Map<String, Object?> toJson() => <String, Object?>{
'outcome': outcome,
'source': source.toJson(),
'beforeBlobId': beforeBlobId,
'afterBlobId': afterBlobId,
'width': width,
'height': height,
'pixelFormat': pixelFormat,
'changedPixels': changedPixels,
'totalPixels': totalPixels,
'differenceRatio': differenceRatio,
'comparedAt': comparedAt,
'maxPixels': maxPixels,
'maxBytes': maxBytes,
'warnings': warnings.map((item) => item.toJson()).toList(growable: false),
};