using System.Collections.Generic;
using Newtonsoft.Json.Serialization;
public static void Main()
var myUserFieldValues = new List<CustomField>(){
CustomFieldID = "groc 1",
CustomFieldID = "groc 2",
var myLineItem = new LineItem() {
CustomFields = myUserFieldValues
JsonConvert.SerializeObject(myLineItem).Dump();
public int PartID { get; set; }
public int Quantity { get; set; }
[JsonProperty("comments")]
public string Comments { get; set; }
public List<CustomField> CustomFields { get; set; }
public string CustomFieldID { get; set; }
public string Value { get; set; }