core.Map<core.String, core.dynamic> toJson() => { if (rulesNewerVersions != null) 'rulesNewerVersions': rulesNewerVersions!, if (state != null) 'state': state!, };