using System.Collections.Generic;
public static void Main()
""profile-url"": ""https://app.hubspot.com/contacts/5532227/contact/2301"",
""value"": ""1554886333954""
""value"": ""Khaos Control""
""value"": ""Swannington""
var foo = ContactListAPI_Result.FromJson(input);
var result = foo.ToDTO();
Console.WriteLine("Print all properties:");
foreach(var p in result.Properties){
Console.WriteLine(p.Key+" - "+p.Value);
Console.WriteLine("\n\n Print one particular");
Console.WriteLine(result.Properties["company"]);
public partial class ContactListAPI_Result
public long Vid { get; set; }
[JsonProperty("portal-id")]
public long PortalId { get; set; }
[JsonProperty("is-contact")]
public bool IsContact { get; set; }
[JsonProperty("profile-url")]
public Uri ProfileUrl { get; set; }
[JsonProperty("properties")]
public Dictionary<string, Dictionary<string, string>> Properties { get; set; }
public partial class ContactListAPI_Result
public static ContactListAPI_Result FromJson(string json) {
return JsonConvert.DeserializeObject<ContactListAPI_Result>(json);}
public partial class ItemDTO
public long Vid { get; set; }
public long PortalId { get; set; }
public bool IsContact { get; set; }
public Uri ProfileUrl { get; set; }
public Dictionary<string, string> Properties { get; set; }