core.Map<core.String, core.dynamic> toJson() { final metricName = this.metricName; final target = this.target; return {'metricName': ?metricName, 'target': ?target}; }