using System.Collections.Generic;
public static void Main()
var msg = new message() { Content = new content() { type = "text/html", value = "html" },
From = new from() { email = "example@example.com", name = "example" },
Personalizations = new personalizations() {subject="", tos = new List<to>() { new to(), new to() } } };
var data = JsonConvert.SerializeObject(msg);
public content Content { get; set; }
public from From { get; set; }
public personalizations Personalizations { get; set; }
public string type = "text/html";
public string value = "html";
public string email = "example@example.com";
public string name = "example";
public class personalizations
public string subject { get; set; }
public List<to> tos { get; set; }
public string email { get; set; }