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