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