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