toJson method

Map<String, Object?> toJson()

Encodes this value as a JSON object.

Implementation

Map<String, Object?> toJson() => <String, Object?>{
  'outcome': outcome,
  'source': source.toJson(),
  'target': target.toJson(),
  'targetId': targetId == null ? null : targetId!,
  'generation': generation == null ? null : generation!,
  'width': width,
  'height': height,
  'pixelRatio': pixelRatio,
  'pixelFormat': pixelFormat,
  'capturedAt': capturedAt,
  'requestedFrames': requestedFrames,
  'observedFrames': observedFrames,
  'maxPixels': maxPixels,
  'maxBytes': maxBytes,
  'warnings': warnings.map((item) => item.toJson()).toList(growable: false),
  'blob': blob.toJson(),
};