Convert a JSON document to a matching C# class using modern .NET 7 features such as required members and nullable reference types.