toJson method

Map<String, Object?> toJson()

Implementation

Map<String, Object?> toJson() {
  return {
    'protocolVersion': protocolVersion,
    'timestamp': timestamp,
    'settings': settings.toJson(),
    'samples': samples.map((entry) => entry.toJson()).toList(),
    'batches': batches.map((entry) => entry.toJson()).toList(),
    'timeline': timeline.map((event) => event.toJson()).toList(),
  };
}