Map<String, dynamic> toMap() { return <String, dynamic>{ 'perfMetricType': perfMetricType, 'perfUnit': perfUnit, 'sampleSeriesLabel': sampleSeriesLabel, }; }