toJson method

Map<String, Object?> toJson()

This report as JSON.

Implementation

Map<String, Object?> toJson() => <String, Object?>{
  'sceneId': sceneId,
  'runMode': runMode.name,
  'trustworthy': runMode.isTrustworthy,
  'build': build.toJson(),
  'raster': raster.toJson(),
  'total': total.toJson(),
  if (notes != null) 'notes': notes,
};