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