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