NumericHealthValue.fromHealthDataPoint constructor

NumericHealthValue.fromHealthDataPoint(
  1. dynamic dataPoint
)

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

Implementation

factory NumericHealthValue.fromHealthDataPoint(dynamic dataPoint) =>
    NumericHealthValue(numericValue: dataPoint['value'] as num? ?? 0);