ElectrocardiogramHealthValue.fromJson constructor
ElectrocardiogramHealthValue.fromJson(
- dynamic json
Implementation
factory ElectrocardiogramHealthValue.fromJson(json) =>
ElectrocardiogramHealthValue(
voltageValues: (json['voltageValues'] as List)
.map((e) => ElectrocardiogramVoltageValue.fromJson(e))
.toList(),
averageHeartRate: json['averageHeartRate'],
samplingFrequency: json['samplingFrequency'],
classification: ElectrocardiogramClassification.values
.firstWhere((c) => c.value == json['classification']),
);