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