General map representation
Map<String, dynamic> get map => { 'count': count, 'measurements': measurements.map((e) => e.map).toList(), 'metadata': metadata, };