toJson method

Map<String, dynamic> toJson()
override

Implementation

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