factory MetricDimension.fromJson(Map<String, dynamic> json) { return MetricDimension( comparisonOperator: json['ComparisonOperator'] as String, value: json['Value'] as double, ); }