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