General map representation
Map<String, dynamic> get map => { 'value': value, 'unit': unit, 'metadata': metadata, };