toJson method
Converts the HealthDataPoint to a json object
Implementation
Map<String, dynamic> toJson() => {
'value': value.toJson(),
'data_type': type.name,
'unit': unit.name,
'date_from': dateFrom.toIso8601String(),
'date_to': dateTo.toIso8601String(),
'platform_type': PlatformTypeJsonValue[platform],
'device_id': deviceId,
'source_id': sourceId,
'source_name': sourceName
};