HealthData constructor

HealthData(
  1. String uuid,
  2. HealthValue value,
  3. String unit,
  4. String dataType,
  5. DateTime dateFrom,
  6. DateTime dateTo,
  7. String platform,
  8. String deviceId,
  9. String sourceId,
  10. String sourceName,
)

Create a HealthData object.

Implementation

HealthData(
  this.uuid,
  this.value,
  this.unit,
  this.dataType,
  DateTime dateFrom,
  DateTime dateTo,
  this.platform,
  this.deviceId,
  this.sourceId,
  this.sourceName,
) : super() {
  this.dateFrom = dateFrom.toUtc();
  this.dateTo = dateTo.toUtc();
}