factory MetricValue.fromJson(Map<String, dynamic> json) { return MetricValue( amount: json['Amount'] as String?, unit: json['Unit'] as String?, ); }