ElectrocardiogramVoltageValue.fromHealthDataPoint constructor

ElectrocardiogramVoltageValue.fromHealthDataPoint(
  1. dynamic dataPoint
)

Create a ElectrocardiogramVoltageValue based on a health data point from native data format.

Implementation

factory ElectrocardiogramVoltageValue.fromHealthDataPoint(
        dynamic dataPoint) =>
    ElectrocardiogramVoltageValue(
        voltage: dataPoint['voltage'] as num,
        timeSinceSampleStart: dataPoint['timeSinceSampleStart'] as num);