Measurement constructor

Measurement({
  1. required int id,
  2. required DateTime timestamp,
  3. double? value,
  4. String? type,
  5. String? unit,
})

Implementation

Measurement({
  required this.id,
  required this.timestamp,
  this.value,
  this.type,
  this.unit,
});