I was wondering if there was a way to serialize and deserialize a class so that a component is treated as part of that class.
public partial class LevelObjectConfig : ObservableObject
{
[JsonUnnest]
public Graphics Graphics { get; } = new();
}
I tried googling if there was a existing solution but there didn’t seem to be.
I was expecting something like this..
{
...
}
instead of something like this..
{
"graphics" :
{
...
}
}