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