WeightSample.fromMap constructor
Implementation
factory WeightSample.fromMap(Map<String, dynamic> m) => WeightSample(
kg: (m['kg'] as num).toDouble(),
lbs: (m['lbs'] as num?)?.toDouble(),
timestamp: DateTime.fromMillisecondsSinceEpoch((m['timeMs'] as num).toInt()),
source: m['source'] as String? ?? '',
device: m['device'] as String? ?? '',
);