NumericHealthValue.fromHealthDataPoint constructor
NumericHealthValue.fromHealthDataPoint(
- 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);