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