toJson method
Encodes this CockpitSnapshotLayout as a JSON object.
Implementation
Map<String, Object?> toJson() => <String, Object?>{
'width': width,
'height': height,
'dx': dx,
'dy': dy,
if (constraintsSummary != null) 'constraintsSummary': constraintsSummary,
};