Map<String, dynamic> toJson() { return { "quantitySample": data.toJson(), "healthMetric": HealthKitHealthMetric.heartRate.definition, }; }