toJson method
Encodes this value as a JSON object.
Implementation
Map<String, Object?> toJson() => <String, Object?>{
if (targetId != null) 'targetId': targetId!,
if (generation != null) 'generation': generation!,
if (pixelRatio != null) 'pixelRatio': pixelRatio!,
if (timeoutMs != null) 'timeoutMs': timeoutMs!,
if (afterFrames != null) 'afterFrames': afterFrames!,
};