toJson method
Implementation
Map<String, dynamic> toJson() {
final dimensions = this.dimensions;
final metricName = this.metricName;
final namespace = this.namespace;
return {
if (dimensions != null) 'Dimensions': dimensions,
if (metricName != null) 'MetricName': metricName,
if (namespace != null) 'Namespace': namespace,
};
}