You can change nullability for data property, not for itemSetting property (what do I mean: https://github.com/RenatV/FilterIssueTest) or use new extra fied as itemSetting is null mark and check them (itemSetting property also must be notNullable public ItemSetting ItemSetting { get; set; } = new();
).