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