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