Can't retrieve data because of JsonIgnore
I'm using JsonIgnore to not include the data in the JSON file (the two properties where I'm using [JsonIgnore] are not allowed to be put inside the JSON file). The problem is that no matter what I've tried until now to retrieve the data in the overriden ToString() method, the datamodel that should contain the TimeTitlePair is always empty/null. I have never had C# up until this semester and this is one of the places where I struggle. I'll show the full code below:
4 Replies
Please don't upload your files directly, use $paste instead
If your code is too long, you can post to https://paste.mod.gg/ and copy the link into chat for others to see your shared code!
However, based on your description it sounds like you are re-using the same model as both input, storage and output