toJson method

Map<String, Object?> toJson()

Converts this payload into a serialization-friendly map.

Implementation

Map<String, Object?> toJson() {
  return <String, Object?>{
    'stats': stats.toJson(),
    'report': report.toJson(),
    'lastSnapshot': lastSnapshot?.toJson(),
    'lastSnapshotSummary': lastSnapshotSummary?.toJson(),
  };
}