toJson method
Implementation
Map<String, dynamic> toJson() => {
'voltageValues':
voltageValues.map((e) => e.toJson()).toList(growable: false),
'averageHeartRate': averageHeartRate,
'samplingFrequency': samplingFrequency,
'classification': classification.value,
};