using System.Collections.Generic;
public static void Main()
DeletedDoctorEvent clsInfo = new DeletedDoctorEvent()
OperationId ="69e3816a-8cd5-420c-81ff-1cd4d93e75bc",
DeletionDate = DateTime.Now,
DeletedData = new Dictionary<string, List<string>>()
{"BookingIds", new List<string>(){"1", "2"}},
{"PatientIds", new List<string>(){"3", "4"}}
var settings=new JsonSerializerOptions{ DateFormatString ="yyyy-MM-ddTHH:mm:ss.fffZ"};
String jsonOutput = JsonSerializer.Serialize(clsInfo, settings);
Console.WriteLine(jsonOutput);
public class DeletedDoctorEvent
public string OperationId { get; set; }
public string DomainName { get; set; }
public DateTime DeletionDate { get; set; }
public Dictionary<string, List<string>> DeletedData { get; set; }