JsonException missing required properties when they are there
JsonException: JSON deserialization for type 'MultipanelChatwootServer.Dtos.ContactInbox' was missing required properties, including the following: id, contact_id, inbox_id, created_at, updated_at, hmac_verified
9 Replies
are you trying to deserialize that exact json to that exact model? because they don't match
the
contact_inbox:
at the beginning would be incorrect
also, share any relevant deserializer configuration/codeIt wouldn't let me edit the post, I'm using:
so again is that the entire json you're deserializing?
because that doesn't represent a ContactInbox, it represents some other object with a ContactInbox property
No it's not
Let me try deserialise it alone
Yes it is a property
Okay it deserialised fine by itself
yeah so something is probably wrong in whatever model contains this property
The root object is this:
I believe the account deserialised fine