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