I'm trying to serialise and de-serialise a non IParsable object which has enclosed IParsable objects, using graph sdk 5 for dotnet c#. For example my class is
public class ReadData
{
public Group GroupData { get; set; }
public Team TeamData { get; set; }
}
Expected json format is graph native format, not sdk dependent json. Graph v5 has introduced some changes like backingstore and odatatype property etc. I'm not interested in these properties in my json.
I've used System.Text.Json.Serialization serialisation/de-serialisation apis, but that's not generating graph native json.
I've tried kiota serialisation apis from JsonParseNode.GetObjectValue to de-serialise (Microsoft.Kiota.Abstractions.Serialization) and JsonSerializationWriter.WriteObjectValue (Microsoft.Kiota.Serialization.Json). Both of these expecting to have IParsable objects to be serialised/deserialised Example provided is a simple case. I've complex classes.
Any ideas on how to get this working please? Thanks in advance.