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