Polish health app UI
This commit is contained in:
@@ -30,4 +30,16 @@ class BpReading {
|
||||
'unit': 'mmHg',
|
||||
'recordedAt': timestamp.toUtc().toIso8601String(),
|
||||
};
|
||||
|
||||
Map<String, dynamic>? toHeartRateRecord() {
|
||||
final value = pulse;
|
||||
if (value == null || value <= 0) return null;
|
||||
return {
|
||||
'type': 'HeartRate',
|
||||
'value': value,
|
||||
'source': 'DeviceSync',
|
||||
'unit': 'bpm',
|
||||
'recordedAt': timestamp.toUtc().toIso8601String(),
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user