James
James
CC#
Created by James on 11/27/2023 in #help
JsonException missing required properties when they are there
"contact_inbox": {
"id": 4,
"contact_id": 4,
"inbox_id": 1,
"source_id": "f7b6c095-1356-47dd-b7ba-58cee0531175",
"created_at": "2023-11-27T14:04:07.619Z",
"updated_at": "2023-11-27T14:04:07.619Z",
"hmac_verified": false,
"pubsub_token": "h18bNijnqfjVLtsTNd17hGPq"
}
"contact_inbox": {
"id": 4,
"contact_id": 4,
"inbox_id": 1,
"source_id": "f7b6c095-1356-47dd-b7ba-58cee0531175",
"created_at": "2023-11-27T14:04:07.619Z",
"updated_at": "2023-11-27T14:04:07.619Z",
"hmac_verified": false,
"pubsub_token": "h18bNijnqfjVLtsTNd17hGPq"
}
public sealed record ContactInbox
{
public required int Id { get; init; }
public required int ContactId { get; init; }
public required int InboxId { get; init; }
public required string SourceId { get; init; }
public required string CreatedAt { get; init; }
public required string UpdatedAt { get; init; }
public required bool HmacVerified { get; init; }
}
public sealed record ContactInbox
{
public required int Id { get; init; }
public required int ContactId { get; init; }
public required int InboxId { get; init; }
public required string SourceId { get; init; }
public required string CreatedAt { get; init; }
public required string UpdatedAt { get; init; }
public required bool HmacVerified { get; init; }
}
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
16 replies