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